ne0-reloaded
[H]ard|Gawd
- Joined
- Jul 1, 2003
- Messages
- 1,216
I'm trying to parse a string variable so that it only returns everything before and after certain characters. heres an example"
strVar = "See-Tom-Run"
all i want to return is "Tom"
what ive done so far is this:
this returns "Tom-Run" but im not sure what function to use parse everything after the second hyphen. Ive tried the left and right function, but i cant get it to work the way i want it to
if anyone can help me out id appreciate it
thanks!
strVar = "See-Tom-Run"
all i want to return is "Tom"
what ive done so far is this:
Code:
strVar1 = "See-Tom-Run"
strVar2 = Mid(strVar1, 4)
this returns "Tom-Run" but im not sure what function to use parse everything after the second hyphen. Ive tried the left and right function, but i cant get it to work the way i want it to
if anyone can help me out id appreciate it
thanks!