ASCII

The ASCII function is used to return the ASCII value of a character in a string.

Syntax

Variable = ASCII (ASCIIString(1,1,X) )

Remarks

Variables that are declared as strings can have only two dimensions. If a third dimension is used for a string, it represents the character within the string. Therefore, in the previous syntax example, X is a value that represents the position of the character in the string that you want returned. If your string is ABCDEFG and you want the ASCII value returned of D, you would use the number 4 for X to return that value.

Parameter

ASCIIString

The string that should be processed with the function.

Variables that are declared as strings can have only two dimensions. If a third dimension is used for a string, it represents the character within the string. Therefore, to specify the character for which to return the value, use ASCIIString(1,1,X) where X is a value that represents the position of the character in the string that you want returned. If your string is ABCDEFG and you want the ASCII value returned of D, you would use the number 4 for X to return that value.

Type: Variable declared as a String