|

vbscript – Asc

FUNCTION:  Asc()


Implemented in version 1.0

Asc(String)

The Asc function returns the ANSI character code value for the first character in a string.

In these two examples, note that the ANSI value is returned only for the « a ».

Code:
<% =Asc(« abcde fghij klmno pqrst uvwxyz ») %>

Output:
97

Code:
<% =Asc(« a ») %>

Output:
97

Publications similaires

Laisser un commentaire

Votre adresse e-mail ne sera pas publiée. Les champs obligatoires sont indiqués avec *