Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Top-Level Forms and Menus
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00306891
Message ID:
00306896
Views:
25
>Hi gang,
>
>One of our developers here has a top-level form which instantiates a menu. They would like to be able to reference that top level form, as an object, in one of the menu bars.
>
>_SCREEN.ActiveForm won't work, since it's a top-level form. Neither will storing an object reference in a property, since the menu has no idea where to look for the property.
>
>Any ideas?
>
>TIA,

I usually store an object reference to the form in a property of my application object and reference it from there. E.g:

oApp.MyTopLevelForm. ...

Important to NULL out the reference to the object before releasing the form to clean up object references.

Bill
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform