pjroy
asked on
Find a subset in a string
Ex.: I have this string "id1##id2##id3". The ## are the delimiter in this string. I want to obtain the first part of this string, so all the caracter before the #. Is there any function in VB to do that?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Yep, sorry I forgot the -1
id1 = mid$(text,1,instr(text,"#"
this will give you id1 for id2
"create a new value for text
text = mid$(text,1,instr(text,"#"
id2 = mid$(text,1,instr(text,"#"