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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Application Object Variables

Status
Not open for further replies.

BG12424

Programmer
Jun 4, 2002
717
US
Is it possible to dynamically create an application object variable name and set it to some value? For instance,

for i = 1 to 10
application("Item" & i) = i
next

thanks,
Brian regards,
Brian
 
Thank you.

Here is what I want to do in psuedo code. How can I apply this to the function below with VBScript?

function getList(id)

... code to get resultset based on id passed into function...

if rs.state = adStateOpen then
application("getList" & id) = rs
end function


Error code that I see:

Error Type:
Application object, ASP 0185 (0x8002000E)
A default property was not found for the object.
/trading/inc/sprocs.asp, line 144 (LINE 144 IS EQUIVALENT TO THE APPLICATION OBJECT VARIABLE SET LINE)
regards,
Brian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top