>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.