Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to exit a form
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Titre:
How to exit a form
Divers
Thread ID:
00151256
Message ID:
00151256
Vues:
45
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform