Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I get rid of all forms from memory
Message
From
21/11/2000 03:31:55
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00443633
Message ID:
00443981
Views:
8
Thanks Larry

The following piece of code falls over with the error when ever I have the form designer on the screen.

PARENT is not an object

it does this on line 2.

FOR x =_screen.FormCount TO 1 STEP -1
if vartype(_screen.forms(x).parent)#'O'
_screen.Forms(x).release()
endif
ENDFOR


So I am not much more further advanced. Any more ideas :)




>>
>>I tried below but I get a crash when I try to test for the parent property. It still tells me that my form designer window is not an object (hence no properties to test, the name property seem to work though)
>>
>>>
>>>You can use the Parent property of the form to determine if it is part of a Formset. The form designer is just a formset wrapper for your form. If you don't use formsets and the form you are attempting to release is part of one, then don't release it.
>
>>
>
>So it's working now?
>
>The only thing that you would have to test for is if vartype(_Screen.Forms[x].Parent) = "O". If it does then the form is part of a formset (the form designer).
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform