Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Key in apostrophe
Message
From
15/09/2004 20:40:54
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
15/09/2004 20:32:15
Yh Yau
Ingenuity Microsystems Sdn Bhd
Kuala Lumpur, Malaysia
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00942689
Message ID:
00942696
Views:
16
>VFP6 SP5. Using sqlexec() to insert records into SQL server database. How to allow "'" or quotes to be entered?
>The syntax use is :-
>lcsqlstring = "Something with ' "
>Thanks in advance.
>Yau

I don't know for sure about sqlexec(), but usually, to include quotation marks in a string, you can use another kind of quotation marks on the outside. There are three kinds of "quotation marks" for strings in VFP:

"string"
'string'
[string]

So, for example, if you need double quotation marks, you can use any of the other one:

'A string with "quotation marks"'

or:

[A string with "quotation marks"]
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform