>Do you know when you return a recordset do you use the same syntax?
>~M
Yes, except you should use the SET keyword since you'll be dealing with an object. In other words....
Dim varValue
'-- Create the object
objMyObject = Server.CreateObject("myObjectName.myObjectClassName")
'-- Call the method you want
SET objReturned = objMyObject.MyMethod()
Set objMyObject = Nothing
Now, having said that, I would really recommend reconsidering your design if you are returning a recordset. Since you'd be passing an object by reference, you would really be returning a pointer to the memory address of the original object, and if this memory address is on another machine (depending on your setup) this could present a major drag on performance and scalability.
Could you return XML instead? And then take any required actions against the XML string?
The whole problem with the world is that fools and fanatics are always so certain of themselves, but wiser people so full of doubts. - Bertrand Russell