Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Debug with a Timer
Message
De
30/10/2001 11:00:04
Charles Richard
Nvo Management Systems
Boisbriand, Québec, Canada
 
 
À
30/10/2001 09:17:01
Calvin Smith
Wayne Reaves Computer Systems
Macon, Georgie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00574989
Message ID:
00575097
Vues:
23
When you enter debug mode, put

_Screen.ActiveForm.oTimerObj.Enabled

in the watch window then select the .T. and set it to .F.

Better yet, put an ON KEY assignment in the init method of your timer:

ON KEY LABEL F12 _Screen.ActiveForm.oTimerObj.Enabled
= .NOT. _Screen.ActiveForm.oTimerObj.Enabled

Put ON KEY LABEL F12 in it's destroy method.

This will allow you to toggle the timer off and on

According to VFP help:

Display timer events: Choose this option if you want Timer Control timer events displayed in the Trace Window when their interval value is reached. If you clear this option, the timer event still occurs, but is not displayed; it is treated as if you had specified Step Over for that event.

HTH

>My form has a timer on it. Whenever I go into debug mode I get stuck in the timer event. I have loaded the first patch Microsoft made available. In VFP Options, I thought I had it set to ignore timer events in debug mode. VFP 6 does not act this way. What am I doing wrong? Thanks!
Charles Richard
NVO Management Systems
crichard@nvo.ca
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform