Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I get rid of all forms from memory
Message
De
21/11/2000 03:31:55
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00443633
Message ID:
00443981
Vues:
13
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).
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform