Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Form won't release
Message
From
04/11/1998 16:46:32
 
 
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00154566
Message ID:
00154572
Views:
20
Larry ---

Change RELEASE THISFORM to THISFORM.Release() in your Cancel button Click() code.


>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
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform