Use this function to convert a single character into an integer value.
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. |
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.
© Copyright 2014, Oracle and/or its affiliates. All rights reserved. Legal notices.