View Single Post
  #4 (permalink)  
Old December 14th, 2006, 01:42 AM
Shasur Shasur is offline
Friend of Wrox
Points: 3,060, Level: 23
Points: 3,060, Level: 23 Points: 3,060, Level: 23 Points: 3,060, Level: 23
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Sep 2005
Location: , , .
Posts: 812
Thanks: 1
Thanked 53 Times in 49 Posts
Default

Dim arTemp() as string

arTemp = Split("YourStringHere")

IF ubound(arTemp) = 7 then

ElseIF ubound(arTemp) = 9 then

Else

End if

This should work.

If you are bit averse on arrays, ou can do the same in Regular Expressions

Cheers
Shasur

http://www.vbadud.blogspot.com
Reply With Quote