Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Escape character \
Message
De
28/01/2005 03:35:48
 
 
À
28/01/2005 03:27:36
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00981620
Message ID:
00981623
Vues:
36
yourtext=STRTRAN(yourtext,"'","\'")
yourtext=STRTRAN(yourtext,'"','\"')
You will need one line per special character, or you can combine it into one ugly looking line.

>Is there have simple way to put escape character infront some special char like ',"...
>
>
>For Example :
>
>
>Change from -
>
>INSERT INTO customer (cusNo,remark)
> VALUES ('C01','THIS'S A TEST, 123')
>
>To
>
>INSERT INTO customer (cusNo,name,ramark)
> VALUES ('C01','THIS\'S A TEST, 123')
>
>
>
>
>Thanks
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform