General information
Category:
Coding, syntax & commands
>>>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only