Seiki Batch Script > String Functions

char

Converts the first Unicode character of a string to its integer value

Class: String

Parameters: $string – A string of characters

Syntax: d=$char($string)

Returns: The integer value equivalent to the first character of the string

Remarks: None

Example:

//Example for the string char method

$s=”ABCD” //Set string

result=char($s) //Result (= 65)

message(“Value of first character of “ + $s + “ is “ + result) //Display results message

 

See Also:    $char

                  $chars

                  chars