View Full Version : Passing an array?
elcaro2k
10-11-2002, 09:25 PM
Is it posible to pass an array from one asp page to another without using session variables.
Thanks,
Ray
-------------------
Void where prohibited!
allida77
10-11-2002, 09:38 PM
If not a session then it could only be:
form & querystring - You would probaly have to split them on the processing page.
Cookie - not sure if you would have to split this never tried it.
You can try these diff ways and do a
<%
Response.Write(VarType(myArray))
%>
on your processing page. If it is a 8192 then it is an array.(Dev Guru (http://www.devguru.com/Technologies/vbscript/quickref/vartype.html) )
Sorry couldnt give you a direct answer I have never tried to do it , but this is how I would go about doing it.
whammy
10-11-2002, 09:51 PM
You could pass the array as a delimited string, and then split the string up into an array by the delimiter. What's great about that is you don't have to redim the array that way, and you can just use UBound()...
allida77
10-11-2002, 09:59 PM
oops forgot about that. It would have to be delimited which ever way you decide you pass it.
elcaro2k
10-11-2002, 10:13 PM
I forgot to mention that it is a two dementional array. Sorry! Not sure if a string is practical?
tgif:
whammy
10-12-2002, 01:39 AM
Hmmm.... you could use two different delimiters, maybe?
vBulletin® v3.8.2, Copyright ©2000-2010, Jelsoft Enterprises Ltd.