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 Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

special charecters in a string

Status
Not open for further replies.

jslmvl

Vendor
Joined
Jan 26, 2008
Messages
268
Location
GB
Hi,

Can you tell me how to include some special charecters in a string in ASP code? For example '<%' and '%>' and some other special charecters.

Thank you in advance.
 
Do it as separate characters

eg "<" & "%"

If it is something like a degree symbol, you can use chr

eg x = chr(176)

If it is a wide character use wchr. For instance 1 in Chinese

x = wchr (19968)
 
I suggest you ask this question in a forum for questions about ASP. This one is for questions about Microsoft Office.

Enjoy,
Tony

------------------------------------------------------------------------------------
We want to help you; help us to do it by reading this: Before you ask a question.

I'm working (slowly) on my own website
 
Thank you for your helps.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top