General information
Category:
Coding, syntax & commands
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only