Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I close a form that was defined in a class
Message
 
To
22/06/1999 15:33:11
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00232681
Message ID:
00233316
Views:
27
Mike,
When you add an object (like your TmrMess and lblZMess) you must set them to .null. before closing the form.

HTH
Barbara

>When I call this code from my app it works but I can't close the form
>
>Thanks in advance!
>
>
>
>xTmpFormMess = CREATEOBJECT("ApMess","Running Installation Please Wait...")
>
>DEFINE CLASS apMess AS FORM
> DoCreate = .T.
> CAPTION = 'Please Note!'
> WIDTH = 430
> WINDOWTYPE = 1
> VISIBLE = .T.
> AUTOCENTER = .T.
>
> ADD OBJECT lblZmess AS Label WITH ;
> AutoSize = .T., ;
> FontSize = 20, ;
> Caption = "", ;
> Height = 39, ;
> Left = 10, ;
> Top = 96, ;
> Width = 232
>
> ADD OBJECT tmrMess AS TIMER WITH ;
> INTERVAL = 3000
>
> PROCEDURE tmrMess.TIMER
> ? TIME()
> THISFORM.RELEASE()
> ENDPROC
>
> *-- Form init
> PROCEDURE INIT
> LPARAMETERS lcMessage
> THISFORM.lblZmess.CAPTION = lcMessage
> THISFORM.SHOW()
> ENDPROC
>ENDDEFINE
Barbara Paltiel, Paltiel Inc.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform