Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using UPDATE for Memo field
Message
From
06/08/2004 19:57:53
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00931478
Message ID:
00931481
Views:
17
>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)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform