In JScript, the function charCodeAt(n) returns an integer
representing the Unicode encoding of the character at the
n+1 position as shown in the following example.
How can we do the same using VBScript or Visual Basic?
Thanks,
Bob
///////////EXAMPLE///////////////////////
<html>
<head>
<script language="jscript">
function charCodeAtTest(n){
var str = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
var n;
n = str.charCodeAt(n); //Get the Unicode
value of the
// character at
position n+1.
alert(n);
}
</script>
</head>
<body onload="charCodeAtTest(2)">
Test for charCodeAt(2). The function will return 67 --
the integer representing Unicode encoding of the
character "C"
</body>
</html>
////////////////////////