Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Escape character \
Message
From
28/01/2005 03:35:48
 
 
To
28/01/2005 03:27:36
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00981620
Message ID:
00981623
Views:
40
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform