Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Inkey()
Message
From
17/10/2006 14:31:21
 
 
To
17/10/2006 14:19:38
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01162644
Message ID:
01162664
Views:
16
>>>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?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform