Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

semicolon in a string??

Status
Not open for further replies.

lminmei

Programmer
Feb 1, 2000
111
0
0
US
what is the code for a semicolon if i want to use a semicolon in a string literal?

 
???
Why would a semicolon need to be escaped? It should only be needed for things like linefeeds, tabs, and the backslash itself.

Don't forget that you can prefix a string literal with the "@" character, and no escaping will be done.

Chip H.


____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first
 
Have you tried: ";" ???

You obviously have, since you're asking the question here, but it works fine on my machine... no escaping necessary.

 
thanks for the replies guys but i figured out that i don't need to escape the semicolon in the string....
the problem was with my double quotes which i did not use an escape backslash...

thanks again...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top