I have several expressions on a data entry form that I will combine and save in a memo field. I want to strip all the CHR(10) and CHR(13) characters from the expressions prior to saving them in the memo field. Is there a better solution than the following?
Thanks in advance.
Chuck Davis
Code:
DO While RIGHT(THISFORM.comment1.VALUE,1) = CHR(10) ;
OR RIGHT(THISFORM.comment1.VALUE,1) = CHR(13)
THISFORM.comment1.VALUE =; SUBSTR(THISFORM.comment1.VALUE,1,LEN(THISFORM.comment1.VALUE) -1)
ENDDO
Thanks in advance.
Chuck Davis