Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I use a modeless form?
Message
From
28/04/2001 02:13:42
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00501150
Message ID:
00501195
Views:
31
>Larry, this works for forms, but... and I guess this a new concern. This does not work all that well for form classes
>I dont know, but I found a way to get form classes work modeless. by creating a public var and then when I issue a omyform=create("myform") type command if the omyform var is made public, it does not clear just after it loads.
>
>the reason I am writing, is that I dont know for sure if this is a good way of handling classforms... by creating public vars... it works, but something is telling me that is not, really a good solution.
>

Hello.

Use the SYS(1271) function. It returns the .SCX file name. Fortunatelly, the public variable created by form have the same name. In the Unload method you can issue RELEASE (SYS(1271),THIS).

In this way the variable is released at the unload event.

Hope this helps.
Grigore Dolghin
Class Software.
Previous
Reply
Map
View

Click here to load this message in the networking platform