I'm trying to split a string on certain positions such as the following code.

VB Code:
  1. dim catID, parID
  2.  
  3. catID = 3
  4. parID = "1a1a11a1"
  5.  
  6. dim intX =  0 to catID
  7.   if intX = 0 then
  8.      'Grab the numbers from the first a and all numbers before it
  9.      'the one before the first a can also be a numbers like 243a
  10.   if intX = 1 then
  11.      'Go to the second a, don't grab the a but grab everything before it.
  12.   if intX = 2 then
  13.      'Go to the third a and don't grab the a but grab everything before it.
  14. 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.