Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Trying to access object on form from a menu
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Trying to access object on form from a menu
Miscellaneous
Thread ID:
00040403
Message ID:
00040403
Views:
89
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
Next
Reply
Map
View

Click here to load this message in the networking platform