Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Closing the TopLevel form from toolbar button
Message
From
20/01/1999 07:56:14
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Closing the TopLevel form from toolbar button
Miscellaneous
Thread ID:
00177934
Message ID:
00177934
Views:
79
How can I close the TopLevel form from the button on toolbar (In TopLevelForm)?
Mycode

*Form.Activate*
IF !THIS.IsLoadedTool
THIS.oToolbar = CREATEOBJECT('myToolbar')
THIS.oToolbar.VISIBLE = .t.
THIS.IsLoadedTool = .t.
ENDIF

*Toolbar.cmdClose*
IF TYPE('myForm')="O" AND !ISNULL(myForm)
myForm.oToolbar = .NULL.
myForm.RELEASE()
ENDIF

Toolbar is hide, but form is not released.
Thanks.
Denis
Next
Reply
Map
View

Click here to load this message in the networking platform