Forum Moderators: open

Message Too Old, No Replies

VB/ASP - Split string into array

         

erikcw

10:13 pm on Nov 17, 2005 (gmt 0)

10+ Year Member



Hi all,

I am working on a VBA project where I have a string that contains a list of data


item1
item2
item3

I want to split the string into an array.

In php I would use explode("\n", $list); How can I achieve this in VB.

Also, is there a function to put it back into a string (like php's implode)?

Thanks!

Erik

TheNige

2:19 am on Nov 18, 2005 (gmt 0)

10+ Year Member



Check the following for complete list of vbscript syntax

[devguru.com...]

Look at the split and join functions.

mrMister

5:09 pm on Nov 23, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



ArrList = Split(strList, Chr(10))