Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ON KEY LABEL
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00155868
Message ID:
00156219
Views:
32
>>>Is it possible to set up an ON KEY LABEL to return a string to the current editbox?
>>>
>>>I want to do something like
>>>On Key label Ctrl+Alt+F1 "This is a beautiful day!"
>>>and as I'm typing along in my editbox have Ctrl+Alt+F1 insert
>>>"This is a beautiful day!"
>>>at the current cursor location. But when I try to assign this I get a syntax error.
>>>
>>>I also tried
>>>On Key label Ctrl+Alt+F1 This.Value = This.Value + "This is a beautiful day!"
>>>and
>>>On Key label Ctrl+Alt+F1 ? "This is a beautiful day!"
>>>but these also gives a syntax error.
>>
>>You are missing something:On Key label Ctrl+Alt+F1 KEYBOARD "This is a beautiful day!"
>--------------------------
>I tried this and got a syntax error....
>
>but I figured it out... it's the ALT part of that line... If I do
>On Key label Ctrl+F1 "This is a beautiful day!"
>it works!
>
>
>I hate undocumented features....this time :-)
>
>Thanks,
>Rick

Don´t assume *all* the guilt; I should have checked the VFP help, where it states clearly the valid key combinations... and (yeah, you guessed it) CTRL+ALT+F1 isn´t one of them.
Previous
Reply
Map
View

Click here to load this message in the networking platform