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 Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Split the string into an array

Status
Not open for further replies.

smuralig

IS-IT--Management
Dec 26, 2002
10
IN

Hello,

I would need to split the string by delimiters ("/") and store in an array. There are 100 elements in the array, but I have 5 big strings (each string has 20 delimiters). So I have to store each string in 20 elements of the array. How do I manipulate this.

thanks,

Murali
 
So you want all 5 strings split into the same array?

Couldn't you just concatenate them together with the same salsh delimiter, and then split the one big string?

-Tarwn

01010100 01101001 01100101 01110010 01101110 01101111 01101011 00101110 01100011 01101111 01101101
29 3K 10 3D 3L 3J 3K 10 32 35 10 3E 39 33 35 10 3K 3F 10 38 31 3M 35 10 36 3I 35 35 10 3K 39 3D 35 10 1Q 19
Do you know how hot your computer is running at home? I do
 
Ok,
string1... string5
i=0

tmpVals=Split(string1,"/")
for j=0 to ubound(tmpVals)
myArray(i+j)=tmpVals[j]
i=i+1
next
...
tmpVals=Split(string5,"/")
for j=0 to ubound(tmpVals)
myArray(i+j)=tmpVals[j]
i=i+1
next

this whould work, also if you have those 5 strings named like i did it can be more easyer then copy paste 5 times that code

________
George, M
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top