Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

String Manipulation (AGAIN!) 1

Status
Not open for further replies.

Geee

Programmer
Apr 23, 2001
253
GB
Ok this is what I want to do...
I've got a string which contains a list of comma delimited numbers like this "1,3,6,9,10,21". What I want to do is to take the numbers from the string and put them into an array of the same length. I presume that I will need to use InStr and Left and Right commands, but I cannot get my head around how to go about it.

Any help is great, I will buy the person who solves it a pint.

G -GTM Solutions, Home of USITE-
-=
 
use split.

ex:
dim myarr
myarr=split(strToSplit,",")

if you don't specify the second param, it will look for spaces by default.

hth
leo
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top