Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to exit a form
Message
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00151256
Message ID:
00151262
Views:
18
>In my base class form, I create 2 toolbars with this syntax:
>
>IF TYPE("thisform.cToolbar")="O" AND !ISNULL(THISFORM.cToolbar)
> RETURN
>ELSE
> THIS.cToolbar = CREATEOBJECT("myToolbar1")
> THIS.cToolbar.SHOW()
> THIS.cToolbar.DOCK(0)
>ENDIF
>
>One of the toolbars has an exit button with this code:
>
> _screen.ActiveForm.Release()
>
>When I run the app and click the exit button, both toolbars disappear and the form freezes. If I click on the app's icon in the Winodws
>task bar, VFP crashes and I get an access violation error. Any idea how to fix this? The base form is MDI with ShowWindow set as 2 (as top level form). Thanks.
>
>Mon

Are you trying to kill top-level form?
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform