[thelist] returning an array in vbscript
Chris W. Parker
cparker at swatgear.com
Thu Jan 23 16:01:01 CST 2003
hi.
here is my code that doesn't work, but is what i want to do. i have been
looking around teh intarweb for the past hour trying to find an answer
with no luck.
Function returnArr(input)
theArr = Split(input,"/")
reurnArr = theArr
End Function
then in my page i want to do this...
returnedArr = returnArr("1/2/3/4/5/6/7/8/9")
Response.Write(returnedArr(0))
Response.Write(returnedArr(1))
Response.Write(returnedArr(2))
Response.Write(returnedArr(3))
etc...
but of course i get an error message "Type mismatch: 'myArr'" on line 49
which happens to be "Response.Write(returnedArr(0))".
thanks,
chris.
p.s. my function returnArr(input) is just a test and not the actual
logic i will be using.
More information about the thelist
mailing list