>>>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?