Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Returning value from FORM subclass
Message
From
01/09/2006 02:44:04
 
 
To
31/08/2006 17:15:36
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP1
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01150230
Message ID:
01150304
Views:
21
try this....I know this works but it may or may not be what you need....

Public gcVar

gcVar = ''

loForm.Show(1) && modal form

wait gcVar window && this will show you the correct return value

Unload event should set and return the value of gcVar

Procedure Unload
gcVar = 'test' && your code here
endproc

The point is to call the show method with (1) as above and to have your form return a value that is stored in a global variable (be sure to have a unique name so this variable doesn't get reset or changedc later on...or just release it if you don't need it)
Previous
Reply
Map
View

Click here to load this message in the networking platform