General information
Category:
Coding, syntax & commands
>>Is it possible to set up an ON KEY LABEL to return a string to the current editbox?
>>
>>TIA
>>Rick
>
>Firstly, it's better to use Editbox.KeyPress event and add there:
>IF nKeyCode=... && i know that there is ALT propble here, so you may choose another key
> This.Value=This.Value+"..."
>ENDIF
>If you want to stick to ON KEY LABEL, then you should:
>1. Create Form's custom method (or system procedure).
>***Form.AddToEditBox
>This.edit1.value=This.edit1.value+"This is ...."
>2. Use absolute reference to the form in ON KEY LABEL command:
>ON KEY LABEL .... oApp.MyForm.AddToEditBox
>3. Restore ON KEY in Form Destroy event.
Thanks, I completely forgot about the KeyPress event...I guess I reverted to my 2.x days. :-(
And thanks for the warning about the ALT.
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