>What is the simplest way to send a cursor to a method of an object? I have a class that contains a ProcessData procedure. Once instantiated, can I pass a cursor to it so it can be parsed apart and processed?
If the sender and your processor object live in the same datasession, you can simply pass the alias. If in a different DS, you can pass the set("datasession") as a 2nd parameter, save the current DS inside the procedure, set the datasession to the passed one, process what you have, then restore the DS.
If there aren't too many data, you can pass a XML string instead and have no worries about the DS.
Another alternative is to just pass the SQL needed to create/populate the cursor, and have the processing routine execscript() it.