| | |
|
Active Server Pages ASP ASP.NET .aspx .ascx Web HTML Developer Internet Microsoft Web Services Visual Studio .NET CJWSoft ASPProtect ASPBanner ASPClassifieds
(Advanced)
(Components)
(Database)
(General)
(Vbscript)

|
|
Subject: |
Re: drop-down menu |
From: |
Harlan |
Date: |
2/10/1999 9:04:01 AM |
IP: |
206.222.20.2 |
asp I think, if not vbscript comes with the
split function built in. here is how you use it.
you have a string with one,two,three,four in it
`sting to split
strTestSplit = one,two,three,four
`split the string at the comma
arySplit = split(strTestSplit,",")
`get the number of items in my new array
arySplitU = UBound(arySplit)
`print out all the items in the array
`you may need to use arySplitU - 1 I forget
`if its a 0 or 1 based array, I always just
`test it when I need it.
For i = 1 To arySplitU
response.write "arySplit(" & i & "): " & arySplit(i)
Next
thats really all there is to it, pretty neat little built in function.
|
Previous Message
|
|
|
|
|
|