Asc()

Last Modified: 9/8/2021

Converts a single character String into its numerical ASCII value.

Arguments

NameTypeRequiredDescription
StringValue String Yes The String you want to get the ASCII value for

Example

Syntax: Asc(<StringValue>)
    b$ = "Testing"
    a = Asc(b$)
    Print a

Remarks

If the StringValue contains more than a single character, then only the first character is evaluated.

See Also

Bin$(), Chr$(), Hex$(), Str$(), Val()