Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Releasing references to control objects
Message
De
10/04/1998 16:17:51
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Releasing references to control objects
Divers
Thread ID:
00091185
Message ID:
00091185
Vues:
60
In connection with developing a mediator-type control in a form to pass messages between control objects, I have created an array containing references to various control objects on the form. I need to release the references to release the form.

I have tried...
* redefining the array (thisform.aArray = .F.),
* destroying each reference individually (FOR i = 1 TO lnArrayLen; thisform.aArray[i].Destroy(); ENDFOR), and
* setting each reference to an object to .F. (FOR i = 1 TO
lnArrayLen; thisform.aArray[i]=.F.; NEXT)

I have tried each approach in the Destroy() and Unload() events of the form. Nothing seems to result in the references being release so I may release the form.

Trying to release the form with references to contained objects still active causes a truly spectacular crash and burn.

I had the problem once in Visual Objects, but I cannot for the life of me remember how I solved it.

I must be overlooking something very simple which is going to make me feel really stupid when someone points it out to me.

Any help? Thanks.

JME
Jim Edgar
Jurix Data Corporation
jmedgar@yahoo.com

No trees were destroyed in sending this message. However, a large number of electrons were diverted from their ordinary activities and terribly inconvenienced.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform