Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Trying to access object on form from a menu
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Trying to access object on form from a menu
Divers
Thread ID:
00040403
Message ID:
00040403
Vues:
87
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
Fil
Voir

Click here to load this message in the networking platform