Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How QUIT when messagebox is on screen?
Message
De
30/11/1998 15:58:38
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00162432
Message ID:
00162539
Vues:
22
>Have a c++ timer running in the background. The cpptimer.fll executes a custom method (oapp.killitcheck) every 10 seconds. When a killit.wrn file is found, the client is given a messagebox asking to quit. When a killit.ded file is found, the cleanup routine is executed., and the client is exited from the app. My cleanup routine is not being working if the client never responded to the original messagebox.
>
>I am not sure if oapp.killitcheck is not being executed with the messagebox up, or if the killit.ded code is being executed but the program will not QUIT with a messagebox up. Guess I do not understand much about timers or messageboxes. Anyone have any ideas?
>
>Thanks - Brenda

Hello Brenda!

I am very happy that you can use my cpptimer fll. Timer event occurs during MessageBox is displayed. Here is a short code to close the messabe box in 5 sec: (Tested on VFP5a and VFP6)


set library to cpptimer.fll
inittimers(1,100)
setuptimer(1,5000,'closemessage()')
messagebox("Hello!")
stoptimer(1)
set library to

function closemessage
KEYBOARD '{ENTER}'
endfunc


BB
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform