Is it possible to hold database field info within a array?<br><br>My "non-working" code: <br>aParameters = Array ([DBItem("ProductName"] [DBItem("Description"][DBItem("SalePrice"])<br><br><br>
I'm not sure how this translates to VBScript but here is some Javascript:<br><br>var rs = Server.CreateObject("ADODB.Recordset"<br>// obtain rowset<br><br>var myValues = new Array();<br>myValues[0] = new String(rs("ID");<br>myValues[1] = new String(rs("FirstName");<br>myValues[2] = new String(rs("LastName");<br><br>Good luck<br>-pete
Ahhh Javascript.....it worked well Pete! Thanks!!!<br> <img src=
I think you were very nearly there in VB script except that you left out the commas. Kinda accademic now but try<br><br>aParameters = Array (DBItem("ProductName",DBItem("Description",DBItem("SalePrice")<br><br>Pat<br><br><br>
Yeah I tried that code before evening posting here. I just could not grasp it with VB, but works like a charm in Javascript....I guess I was doing too much SQL programming, had basic in the brain!<br><br>Thanks again!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.