Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Modal form wont' stay open!
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00947204
Message ID:
00947241
Views:
16
Lloyd,

I was wondering about that. The named memvar is not explicitly defined ... i.e. we let VFP create the memvar when we issue the do form command. Do you know if it gets defined as public or private?

Also, I had stepped through the code yesterday but was kind of in a rush so I didn't do a real thourough job of it. I've spent a bit more time today.

One thing I'm curious is this, if a menu option executes a .prg and that .prg executes the do form frmbrow name ('frm'+m.prg) command does the form get instantiated displayed and then return back to the .prg that issued the do form command? If so, I don't see how you could ever use do form name within a .prg because if all the .prg does is the do form command then when the form returns control, the .prg is finished and closes and the name memvar that was created would be released? Am I making sense? Am I understanding things correctly?


>Hi Rodd,
>
>You are not issuing a CLEAR EVENTS anywhere are you? That would load the form and then destroy it straight away. Also when using the DO FORM .. NAME syntax the form is only going to be available for the lifetime of the NAME'ed memvar. As soon as the memvar goes out of scope it will be destroyed.
>
>Lloyd.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform