Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Passing Array Values

Status
Not open for further replies.

globularbob

Programmer
Nov 15, 2002
69
US
Rookie question:

How does one pass values stored in an array to a Sub Procedure?

Below is how I'm trying to pass it via a button, where arrRec is my array. My array does return records when I use response.write in a for...next statement.

onclick=submitUpdateForm(" & arrRec & ")

Thanks!
 
is this a vbscript question or ASP ?

as is there will not be any client relations ebtween the click events and a sub routine in the page unless you submit the values to call upon the server again.

to answer the question though
sub(myArray(x)) 'where x is the numeric number of the element _________________________________________________________
for the best results to your questions: FAQ333-2924
01001111 01101110 01110000 01101110 01110100
onpnt2.gif
[/sub]
 
I guess what I mean is client or server question?
as I kind of briefly explained the lack there of relations between the two.

_________________________________________________________
for the best results to your questions: FAQ333-2924
01001111 01101110 01110000 01101110 01110100
onpnt2.gif
[/sub]
 
I'm confused, could we see more code?

Also, it appears that your trying to concatenate an array variable into a string, which generally has mixed results (bad and worse). You will probably need to Join the array with a delimiter to convert it to a delimited string, than convert it back on the next page.

-Tarwn 01010100 01101001 01100101 01110010 01101110 01101111 01101011 00101110 01100011 01101111 01101101
29 3K 10 3D 3L 3J 3K 10 32 35 10 3E 39 33 35 10 3K 3F 10 38 31 3M 35 10 36 3I 35 35 10 3K 39 3D 35 10 1Q 19
Get better results for your questions: faq333-2924
Frequently Asked ASP Questions: faq333-3048
 
Its a client problem, but I've seem to have figured it out with everyones help. I'm not sure how, but my solution seems to work. Thanks!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top