Kent,
As Ken has said, set up the return variable in the Unload() of the form either 
that or you can actually do return <return_variable> in the Unload.

Personally I never pass back discrete variable but pass in/out a parameter 
"object" populated with various properties that I may need to use, change or 
pass back. Limiting yourself to passing one variable can be a real pain and you 
end up passing strings of made up parameters with delimiters etc etc..

Dave


-----Original Message-----
From: ProFox [mailto:[email protected]] On Behalf Of Kent Belan
Sent: 30 May 2013 15:04
To: 'ProFox Email List'
Subject: Return value from form in class

Hello,

I am trying to build a form in a class. Everything is working ok, but now I 
want to return a value from the form.

How do I get the return value passed back to the calling form ?

Here is my code:

oForm = createobject("testform")
oForm.show(1)
lcReturnMsg = oForm.cReturnMsg

The problem is the 3rd line errors out with oForm not valid because the form 
has already released

So what is the trick to return a value from a form in a class ?

Thanks,
Kent


[excessive quoting removed by server]

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to