Click to See Complete Forum and Search --> : Placing ASCII codes in string


doc_0424
08-21-2003, 11:32 AM
Hi all,

I need to embed an ASCII code (^D) in a string.

Here's what I need:

SETANCHOR^D123^D456

My string line will end up looking like this:

"SETANCHOR" + ctrlD + "123" + ctrlD + "456"

How do I handle the ^D?

Vladdy
08-21-2003, 11:57 AM
\x[HEXVALUE]

http://devedge.netscape.com/library/manuals/2000/javascript/1.5/guide/ident.html#1008368