Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why won't my form be released?
Message
De
02/04/2003 22:12:12
 
 
À
02/04/2003 22:00:50
Information générale
Forum:
Visual FoxPro
Catégorie:
CodeMine
Divers
Thread ID:
00773396
Message ID:
00773399
Vues:
7
>i have form1 with MDIform set to .T. in it's init event i have

>DO FORM user TO loclicked
>IF loclicked
>Thisform.Caption="Release"
>Thisform.Release()
>ENDIF

>form user will ask for user name and password, it has two buttons OK and >CANCEL. if my cancel button is clicked, my form1's caption changes >to "Release".

>but why is it not Released?


Here is my guess, an object can not be released if there is a live reference to it. Using the to loclicked makes a form object variable reference.

Try loclicked = .null. to release the form
Carole Shaw
Fred Hutchinson Cancer Research Center

Eagles may soar, but weasels don't get sucked into jet engines.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform