Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Form won't release
Message
De
04/11/1998 17:01:22
Eric Barnett
Barnett Solutions Group, Inc
Sonoma, Californie, États-Unis
 
 
À
04/11/1998 16:35:42
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00154566
Message ID:
00154582
Vues:
27
The code you describe below all by itself will not cause a dangling reference (I tried it out), although I would call thisform.release() instead of RELEASE thisform. You could see if that solves your problem, but I'd be inclined to think that you have some other dangling reference somewhere...

>Hi all...
>
>I know... there's probably a dangling reference to the form that prevents is from closing.
>
>Problem is ... I'm not sure how to run the form WITHOUT creating a dangling reference...
>
>Here's the code:
>
>From within an "Option" object:
>
>
>*************************************************
>* create and run the senior key entry object
>oPUPDAAPVMO1 = CREATEOBJECT( "UPDAAPVMO1_SnrKeyEntry" )
>oPUPDAAPVMO1.Execute()
>
>
>Then, within the UPDAAPVMO1_SnrKeyEntry object class definition:
>
>
>*------------------------------------------------------------
>* UPDAAPVMO1_SnrKeyEntry
>PROCEDURE Execute
>    * set some things
>    THIS.SHOW()
>ENDPROC
>
>*------------------------------------------------------------
>* UPDAAPVMO1_SnrKeyEntry
>PROCEDURE cmdCancel.CLICK
>    goApp.lSuccess = .F.
>    RELEASE THISFORM
>ENDPROC
>
>
>So my question is: What code do I put in the class definition (and where) to allow the form to close
>
>TIA
Eric Shaneson
Cutting Edge Consulting
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform