CharV

Use this function to convert a single character into an integer value.

Syntax

CharV (String)

Parameter

Description

String

A character string. If the string contains more than one character, only the first character is converted. The remaining characters are ignored.

Example

In this example, assume the variable, char_to_convert, contains the single character: "@".

#_the_integer = CharV(char_to_convert)

The integer variable, #_the_integer, is set the value: 64.

In this example, assume the variable, the_string, contains the characters: "@( )".

#_the_integer = CharV(the_string)

The integer variable, #_the_integer, is set the value: 64. The remaining characters are ignored.

See also