>I have memo fields created as edit boxes on forms.
>Users have a habit of pressing ENTER key a couple of times upon finishing their entries in this field before realising that to move to another field, pressing Tab is required.
>This results in memo fields storing additional blank lines and prints out in reports.
>How to prevent or eliminate such blank enter keys?
>Thanks in advance.
>Yau
#define CRLF chr(13) + chr(10)
local lcStr
lcStr = thisform.editbox1.value
do while CRLF + CRLF $ m.lcStr
lcStr = strtran(m.lcStr, CRLF + CRLF, CRLF)
enddo
If it's not broken, fix it until it is.
My Blog