Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Treeview.SelectedItem
Message
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00885264
Message ID:
00886796
Views:
10
>In these cases, if we review VFP documentation, the form name has to be a public variable.
>
>I don't think so < s >. If you instantiate a form manager in your main program with private scope, he is available to the rest of the app. Then the form manager can handle any of the dependencies between the forms in his collection.

Then why won't the following show a form when I comment out "PUBLIC frmForm"?
* myForm.PRG
PUBLIC frmForm
frmForm=CREATEOBJECT('subForm')
frmForm.Show()

DEFINE CLASS subForm AS FORM
CAPTION=[Form name needs to be public]
ADD OBJECT text1 AS textbox
text1.value=[Hello world]
PROCEDURE queryunload
this.release
ENDPROC 
ENDDEFINE
Imagination is more important than knowledge
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform