Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP 5.0 Gets Ahead of Itself???
Message
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00112527
Message ID:
00113149
Views:
36
>In all of the FoxPro code I've written in the last 6 years the only time I've used inkey(0.01) was to insure a screen repaint.
>
>Debugging and timers can be a bit problematic. In VFP5 you can set an option to have it ignore Timer events inside the debugger.
>
>>I've run into this many a time. The infamous =inkey(.01) does wonders. I limit my use of timers to a bare minimum, I get too many headaches with those #$^%#% things especially when debugging. Its a horror. I've got a base class of a timer where I put a bit of code (if type('ISDEBUG') != 'U' .and. ISDEBUG = .T. THEN TURN OFF THE TIMER.)
>>Back to the inkey(.01). I've used this many a time when vfp seems to run the code of a line before the other is finished. I don't really know why this is the case, but its happened to me many a time.


David,

I didn't know that about the ignore timers! Thanks. As far as the inkey(.01) - I'll keep an eye on my code and show you some examples. Maybe I'm missing something somewhere but I've also been programming if foxpro for numerous years and never had to do that before.

Robert
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform