Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using UPDATE for Memo field
Message
De
06/08/2004 19:57:53
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00931478
Message ID:
00931481
Vues:
19
>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)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform