Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Referencing modeless forms.
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00292565
Message ID:
00292668
Views:
17
>>I am trying to find information on modeless forms, but am not finding a lot. As far as I can tell, you cannot reference a modeless form from another form (or even the debugger). For example myForm.name generates a OBJECT myForm NOT FOUND error, myForm being the modeless form. Is it true you can't reference modeless forms, and if so why?
>
>Sure you can, there are several ways to do it. Using the NAME clause with DO FORM is one way (the NAME being like a Private var), or a form or app object property if using CREATEOBJ(). Also, you can pass a parameter WITH THIS and reference that way. A few ideas to get you started...

Thanks Bruce,

I understand now why I can't reference my form, but I'm pretty confused. The variable used to reference the form is scoped to the calling event. Right? so as soon as the event is over the variable goes away. What I'm confused about is how I am supposed to handle this. Do I make the variable public before calling the form? IE:

PUBLIC myForm
DO FORM myForm.scx

????

Thanks for the help.
Marcus.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform