Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I put quotes into a string?
Message
From
16/07/1999 16:00:54
 
 
To
16/07/1999 15:23:53
Brent Knight
Progressive Impressions International
Bloomington, Illinois, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00242523
Message ID:
00242549
Views:
19
>I am wanting to put quotes into a string.
>
>I have a message box that I want to put "" into. What is the escape character so I may use the quotes. I don't want to have to resort to using Ascii codes.
>

encapsulate the string in single quotes, or square brackets:

cString = 'Single quoted string containing " character'
cString = [Square bracketed string with both ' and " characters]
cString = "This has ' in one half" + ' and " in the other'

>
>Thank you
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform