Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ' Check if open bracket is present, i.e. InStr() function returns valid number for ARGS.Item(1)
- If (InStr(ARGS.Item(1), "(") - 1) > 1 Then
- ' It's present, so crop the string to the position of opening bracket, and trim whitespace just in case
- ALBUM = Trim(Mid(ARGS.Item(1), 1, InStr(ARGS.Item(1), "(") - 1))
- Else:
- ' It's not present, carry on by default
- ALBUM = ARGS.Item(1)
- End If
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement