Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Keyboard command
Message
 
To
28/02/2004 08:56:46
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00881620
Message ID:
00882040
Views:
25
Here is at least one crazy solution:
KEYBOARD "?'hello'{ENTER}" clear
KEYBOARD "resume{ENTER}"
susp
WAIT WINDOW "hello"
And to avoid "feature is not available" in the exe:
on error *      && old trick, though works but gives the error when building exe
KEYBOARD "?'hello'{ENTER}" clear
KEYBOARD "resume{ENTER}"
susp
WAIT WINDOW "hello"
on error
>The only way:
>
>KEYBOARD "hello"
>WAIT windows "hello" NOWAIT && with NOWAIT the WAIT use the keyboard event, but not consume the buffer
>
>
>the DOEVENTS is not a solution,
>because VFP use two threads, but it have not a randevouse command for sync they,
>than this is not deterministic:
>
>KEYBOARD "hello"
>DOEVENTS
>DOEVENTS
>DOEVENTS
>DOEVENTS
>DOEVENTS
>DOEVENTS
>DOEVENTS
>DOEVENTS
>DOEVENTS
>DOEVENTS
>WAIT windows "hello"
>
>
>Fabio
Previous
Reply
Map
View

Click here to load this message in the networking platform