Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Closing a Preview (w/o printing)
Message
 
À
06/08/2004 10:39:54
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00931145
Message ID:
00931530
Vues:
37
>No, it is my understanding that SET ESCAPE OFF does not disable the ESC key - what it does is disable the interruption of an executing program, with the ESC key.
>
>You should still be able to carry out some default actions with ESC, such as closing a BROWSE window, or a preview window.
>
>What you have to program separately is the closing of a regular form with ESC. One way to do this is to have a "Cancel" button, with the corresponding property set.


Hilmar, I should have checked earlier when you started talking about SET ESCAPE. I have SET ESCAPE OFF at the beginning of my main program, and I've checked all the other code for a place where it might have been set ON, but there are none. Yes, I am able to carry out default actions as you suggest including closing BROWses and previews. And the forms have a Cancel button with the Cancel property set to .T. In the case of a no-data-entry form there is one button that has both Cancel and Default set to .T.

I'll have to spend more time in the debugger; other than LASTKEY(), what should I be watching for?

Thanks much,
Randy Bosma
VFP - Because life is too short to code in something else...
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform