are there equivalent statements in JavaScript to VB's asc() and chr()?
Printable View
are there equivalent statements in JavaScript to VB's asc() and chr()?
I'm just guessing, double check the documentation (links in my sig).
String.charCodeAt(index)
String.fromCharCode(num1, num2,...)
Strings have charCodeAt, which is like asc, and fromCharCode, which is like chr.
Travis was faster, but unlike him I already checked the docs ;)
Yeah, sorry. I just checked them, too. I'm looking for a refresh. But I found out that these are Unicode values and not ASCII values. Shouldn't be a problem, but it depends on what you want to use them for.Quote:
Originally posted by CornedBee
Travis was faster, but unlike him I already checked the docs ;)
thanks guys. I appreciate it.