Hatch
06-06-2003, 11:08 PM
How do you return a record set from a function?
I have...
===============================
public Function listAllItems
Connect blah blah ...
strSQL1="SELECT * from CartItems;"
objRS.Open strSQL1, objConn
listAllItems = objRS()
End Function
================================
Then the other page I have.....
Set objShoppingCart = New classShoppingCart
Set objItem = New classItem
bob = objItem.listAllItems
response.write(bob)
When I do this I get an error.
Does anyone know how to do this?
Please let me know.
Thanks
I have...
===============================
public Function listAllItems
Connect blah blah ...
strSQL1="SELECT * from CartItems;"
objRS.Open strSQL1, objConn
listAllItems = objRS()
End Function
================================
Then the other page I have.....
Set objShoppingCart = New classShoppingCart
Set objItem = New classItem
bob = objItem.listAllItems
response.write(bob)
When I do this I get an error.
Does anyone know how to do this?
Please let me know.
Thanks