Returns the numeric ASCII value of a specified character.

Syntax

ASC(<expC>)

<expC>

The character whose ASCII value you want to return. You can specify a string with more than one character, but dBASE Plus uses only the first one.

Description

ASC( ) is the inverse of CHR( ). ASC( ) accepts a character and returns its ASCII value—a number from 0 to 255, inclusive. CHR( ) accepts an ASCII value and returns its character.

Other than the syntactic difference of being a method instead of a function, the asc( ) method behaves identically to the ASC( ) function.