Information générale
Catégorie:
Codage, syntaxe et commandes
Titre:
Trying to access object on form from a menu
I am trying to access an object on my form from the menu. When my application loads, the form loads automatically and the following code will work:
IF goApp.MainMenuVisible = .T.
goApp.aForms(1).chkPrintPreview.Value = 0
ENDIF
But if the form is closed and then later reopened, I get an error: Unknown Member aForms.
goApp is my application object created using the application wizard.
jeff
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