Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP6 debugger and timer troubles
Message
De
21/10/1998 19:03:57
 
 
À
21/10/1998 16:44:10
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00149027
Message ID:
00149166
Vues:
22
And don't forget to set iTraceInterval to 10000 (or some other high value) in timer.init.



>Put the following in your base timer class' timer event. Add 2 properties to your timer class called iTraceInterval and iregularinterval. In timer.init, set iregularInterval = Timer.Interval and be sure to put DODEFAULT() in all subclasses:
>
>
>
>IF WVISIBLE("trace") OR  ;
>   WVISIBLE("debugger") OR ;
>   WVISIBLE("call") OR ;
>   WVISIBLE("watch") OR ;
>   WVISIBLE("locals")
>
>   IF THIS.Interval # THIS.iTraceInterval
>      THIS.iRegularInterval = THIS.Interval
>      THIS.Interval = THIS.iTraceInterval
>   ENDIF
>
>ELSE
>
>   IF THIS.Interval = THIS.iTraceInterval
>      THIS.Interval = THIS.iRegularInterval
>   ENDIF
>   THIS.iRegularInterval = THIS.Interval
>
>ENDIF
>
>
>This is now a trace aware timer (this code comes with VFP 6.0)
- Jeff
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform