ASC

Top  Previous  Next

Action

Convert a string into its ASCII value.

 

 

Syntax

var = ASC(string)

 

 

Remarks

var

Target variable that is assigned.

String

String variable or constant to retrieve the ASCII value from.

var :  Byte, Integer, Word, Long.

string :  String, Constant.

 

Note that only the first character of the string will be used.

When the string is empty, a zero will be returned.

 

 

See also

CHR

 

 

Example

Dim A As Byte , S As String * 10

S = "Abc"

A = Asc(s)

Print A

End

 

 

Output

65