>I read this really cool trick in the FAQ(coding & syntax) section on how to send and return multiple values to/from a form using a paramater object...However, I'm kinda new to VFP 6.0 and I don't know where to DEFINE CLASS blah AS blah. I tried doing so in my form, but it tells me that methods and events can't contain nested procedures or class definitions....I REALLY want to use the paramater object trick, but
I NEED YOUR HELP!:)>
>Thanks for any input:)
John,
You can define your parameter class in a prg or in a vcx. It doesn't matter which baseclass it it derived from, so you might as well use the lightest weight baseclass (either a line in VCX or Relation in a prg).
If you define the class in a prg then you must
SET PROCEDURE TO YourPRG before you reference the class. In VFP 6 you can use NewObject() to create it and reference the prg in the NewObject() call, this will eliminate the need to SET PROCEDURE first.