ASCII Function

Top  Previous  Next

Returns the ASCII character code corresponding to the first letter in a string.

 

Short form: "asc".

 

Syntax

 

value = ASCII( expression )

 

Parameters

expression

 

any expression, if it is not a string it will be converted to a string

 

 

 

returns

 

the ASCII character code

 

Examples

The following examples illustrate the use of the ASCII  function:

 

value = ASCII( "A" )                     ' Returns 65

value = ASCII( "a" )                     ' Returns 97

value = ASCII( "1" )                     ' Returns 49

value = ASCII( 1 )                       ' Returns 49