Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL Passthrough and string delimiters
Message
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00054934
Message ID:
00054938
Views:
34
>How is everybody dealing with SQL Passthrough when passing large areas of text
>(memos) typically back to the server? In particular, I see problems with
>embedded string delimiters (') and potentially CHR(0)'s and other control
>characters when sending back binary data.
>
>If I were to send a string like this: "It's a nice day"
>
>and then use: "INSERT SomeTable(SomeMemo) VALUES('"+lcText+"')"
>
>where lcText contains the string above it'll blow up on account of the
>embedded quote.
>
>What am I missing?
>
>+++ Rick ---

cString=chrtran(lcText,chr(34),chr(39))
=sqlExec('INSERT SomeTable(SomeMemo) VALUES("'+cString+'")'
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform