>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only