Split a string on certain poitions.
I'm trying to split a string on certain positions such as the following code.
VB Code:
dim catID, parID
catID = 3
parID = "1a1a11a1"
dim intX = 0 to catID
if intX = 0 then
'Grab the numbers from the first a and all numbers before it
'the one before the first a can also be a numbers like 243a
if intX = 1 then
'Go to the second a, don't grab the a but grab everything before it.
if intX = 2 then
'Go to the third a and don't grab the a but grab everything before it.
next
Please if anyone could help with this it would mean the world to me. I've been stressing over this for days :), thanks alot for the help guys/girld.
Ed.