Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Single + Double Quotes -- Commenting Out
Message
 
 
To
31/08/1999 08:06:06
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00259589
Message ID:
00259595
Views:
18
>I have a string variable I want to insert into a database. The variable contains both single and double quotes, and I'm having difficulty commenting out both sets of quotes. What is the proper syntax for doing so?

I am going to use the tilde [~] to represent the single quote and the asterisk to represent the double quote:

lcMyVar = chrtran(lcMyVar, "~", "")
lcMyVar = chrtran(lcMyVar, '*', '')
Mark McCasland
Midlothian, TX USA
Previous
Reply
Map
View

Click here to load this message in the networking platform