>I have a routine that stores control values to elements of an array. Array is passed to a class that creates UPDATE or INSERT statement and adds/updates records in VFP table.
>
>The problem is when one of the controls is editbox and user types [Enter] key. The value of the editbox than probably has CHR(13) and the UPDATE statement gives error:
>
>
>Command contains unrecognized phrase/keyword.
>
>
>What do you suggest to do in these cases? Or am I missing something?
>
>Thank you.
Can you strip out the offending characters???
CHRTRAN(editbox.value,CHR(13)+CHR(10),"")
(I'm still basically a FPW2.6 dinosaur so I may have the wrong property for the control. But I think the basic idea should still work)