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

JavaScript equivalent of VBScript "chr(n)" 1

Status
Not open for further replies.

countryboy

Programmer
Apr 29, 2001
6
CA
Hello all!
I'm trying to delimit a text string with a non-printable character such as VBScript chr(5).
How could I accomplish this in JavaScript?
TIA.
 
fromCharCode()

In the following example, test contains the string "plain":
var test = String.fromCharCode(112, 108, 97, 105, 110);


br
Gerard
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top