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:
00155885
Views:
35
>>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
Map
View

Click here to load this message in the networking platform