Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using program variables in forms
Message
From
28/11/2003 08:03:59
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00853514
Message ID:
00854175
Views:
22
Hi,

>>If the program launches the form then, providing the program variables are >>not LOCAL, they will be visible within the form.

>Actually, that's not true. Private variables would be visible in form's >Load, but they would not be visible in Form's Init and other methods... It >might depend on form's modality, though.

Hmmm....
PRIVATE myVar
myVar = 4
oForm = CreateObject("MyForm")
oForm.Show()
READ EVENTS

DEFINE CLASS MyForm as Form
PROC INIT()
This.Caption = myVar
ENDPROC
PROC UNLOAD()
CLEAR EVENTS
ENDPROC
ENDDEFINE
Regards,
Viv
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform