Jobs
Author: Olabenjo Tunde Date Submitted: 8/7/2005 Category: String Handling/Manipulation Compatibility: VB 6,VB 5,VB 4/32,VB 4/16,VB 3 This code has been accessed 4770 times.
Email Yourself this snippet:
'Gets the string "name" from "<name>"
Code
data="<name>" pos=Instr(data,"<") data=Mid$(data,pos+1) 'data now=name> pos=Instr(data,">") data=Val(Left$(data,pos-1)) 'removes the ">" from the string"name>" 'data = name