>Ed, where can I find out more about parameter object? (Example, how to, when to implement, etc)
Passing in a parameter object:
Create an object in the caller (it could be the caller itself, in which case, it's reference is
this or
thisform. In the method call pass the object as a parameter:
MyObject.MyMethod(
oMyInboundParameterObjectIn the method receiving the object, you need an LPARAMETERS statement to take the argument:
LPARAMETERS oInBoundObject
you can reference it in the method as oInBoundObject; if you need it within the container, like a form, outside the scope of the receiving method, save it in a container property to preserve it for the life of the container. Any change made to the inbound parameter object contents will appear in the original object whose reference was passed, regardless of how you access it; objects with a common object reference are the same thing.
Outbound parameter object passing:
Create an object of any kind you like. Save in a variable to keep it local to the method, or to a form property to scope it to the form.
In the Return of the method where you want to pass it back, say:
RETURN
oMyParameterObjectThat's it - nothing special about parameter objects