Forum Moderators: open

Message Too Old, No Replies

Spilt method in ASP

can anyone explain?

         

Ecstacy

1:32 pm on Mar 3, 2003 (gmt 0)

10+ Year Member



What is split method in ASP?
What is its functionality?

jpjones

1:41 pm on Mar 3, 2003 (gmt 0)

10+ Year Member



The split function basically takes a string and splits it into an array. How does it do this? You supply the function with a delimiter and it searches for every occurance of this delimiter within the string.

E.g.
MyString is "Webmaster¦world¦rocks"
MyDelimiter is "¦"

MyArray = Split(MyString, MyDelimeter)

MyArray[0] = Webmaster
MyArray[1] = World
MyArray[2] = Rocks

For further info, see the MS Documentation :)

HTH,
JP