Information générale
Catégorie:
Codage, syntaxe et commandes
Titre:
PUBLIC variables won't work when i call in the form
PUBLIC variables won't work when i call in the form. why is it that all the public variable that i declared in the main program will be missing in the form. here's my code.
***Main.Prg
PUBLIC oMyObject
SET CLASSLIB TO myClass
oMyObject = CreateObject("App")
oMyObject.Init()
DO FORM MyForm
***MyForm.Scx
*Init Method at myform.scx
WAIT WINDOW oMyObject.MyText
The oMyObject is missing when i run the program. is there anything wrong with my code or is there any setup in the VFP6 to activate the Public variable. please help me...
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement