Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Treeview.SelectedItem
Message
 
À
16/03/2004 13:11:52
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00885264
Message ID:
00886796
Vues:
12
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform