vbnewbie01
asked on
parse string
hi there; i'd like to parse the following:
dim strTemp = "ib01h"
and retrieve just "01"
so, basically, i just need everything between the 2nd character and the "h"
thanks all.
dim strTemp = "ib01h"
and retrieve just "01"
so, basically, i just need everything between the 2nd character and the "h"
thanks all.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thats what i was looking for ... thanks.
Mid(strTemp, 3, 2)
Mid(strTemp, 3, 2)
ASKER
hi, sam, thanks for your response ... actually, the "h" was just a reference to illustrate the cutoff... sorry to confuse you ... but, thanks again.
use,
yourString.Substring(2,you
here 2 is the startindex. (Hope "h" will be a fixed.)
Regards,
--Sam.