Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Help needed - form won't release
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00693076
Message ID:
00693271
Views:
19
>Is this a bug or sime sort of memory problem?

Colin,

It is neither a bug nor a memory problem, it is the result of confusing the name of the SCX with the name of the form object at runtime, these do not necessarily have the same value. If you leave the naming of the object up to VFP you will deal with the problems you are now, that is not knowing what the name of the object is.

You can explicitly name your form objects so you do know what the names are.
DO FORM MyForm NAME MyForm
- OR -
MyForm = CreateObject("MyForm")
Another option is to NOT use the object names but rather deal with the Forms collection of the _Screen object as in;
FOR lnCnt = _screen.FormCount TO 1 STEP -1
   _screen.Form(lnCnt).Release()
ENDFOR
Note the fact that the forms collection is processed in reverse order.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform