>>>>>Hi All
>>>>>
>>>>>Does anyone know of any issues relating to the use of INKEY() within a DO WHILE ... ENDDO loop? I am having a strange issue where I am looping through a file and testing INKEY() on each loop. And the wierd thing is that if I press a key during the loop an open cursor that I am using gets closed even if I completely ignore the key pressed! Is there a known issue under VFP9/SP1?
>>>>
>>>>How about some repro code?
>>>
>>>Yeah, trying to think about how to do that :) Wierd thing is that it seems dependent on what I do before hand in my app. I can cause it to happen consistently if I follow a certain sequence but I'm really stumped. Even just including a
some_dmmmy_var = INKEY() statement and pressing any key at all causes this issue which results in my cursor closing - provided I did something else first which to me seems unrelated. Complicated to create repro code for this but I am thinking about it :) Need to refine the process / investigation but I was hoping there was a known issue. Will get back to the list with more info asap.
>>
>>Maybe you need to add a Clear Typeahead or two?
>
>No it's something else. As soon as I press the key my cursor is closed, well before it gets closed by my routine. Need to review it further...
Any of these in effect:
.KeyPress()
ON KEY
ON KEY LABEL
SWAG - any weird #DEFINEs/#INCLUDEs?
Regards. Al
"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov
Neither a despot, nor a doormat, be
Every app wants to be a database app when it grows up