General information
Category:
Forms & Form designer
>>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only