>>>Yes, thank you... but a CHR(13) is included in the EditBox.Value...I'm trying to work out the code to strip out this.
>>
>>In control's keypress event:
>>
>>
>>LPARAMETERS nKeyCode, nShiftAltCtrl
>>
>>IF nKeyCode=13 AND nShiftAltCtrl=0
>> NODEFAULT
>> KEYBOARD '{TAB}' PLAIN
>>ENDIF
>>
>
>Brandon, thanks a lot. I was going this direction:
>
this.value = SUBSTR(this.Value,1,AT(CHR(13),this.Value))
>
>But NODEFAULT is quite elegant!
>
>dg
As side note ;
By altering functionality of ENTER you might confuse users who are used to creating new lines (or breaking existing) in a editing
text. You might consider doing handling as Brandon suggested, but with combination of keys (eg. CTRL+ENTER) insted
of ENTER itself.
(+ support by Tooltip, or other kind of direct on-form help/instruction )
HTH
Sergio