Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Event trapping
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00446451
Message ID:
00446534
Vues:
7
>Hi all:
>is there any way I can trap or prevent events from happening on a form while I am executing a function in a program file?
>
>I am getting a keypress event in a text box on a form while I am executing a function in a .prg file. This event is causing the function to quit prematurely!
>The function is started from the valid event of that same text box.
>This has serious consequenses to the stability of my program.
>
>What I would like to do is prevent any events from happening while I process my critical function.
>
>Any help or suggestions would be appreciated. I thought about API calls, but can not seem to find any to do that for me.
>
>-Robert

It sounds like what you want is the behavior you get if your form calls another form which is modal. So, my solution would be to create a modal form with a method that has the code you currently have in your PRG. When you call this form, make sure you use the NOSHOW clause so it doesn't appear, and don't forget to RELEASE it when the process is done.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform