GetUCValue (open)

Get the UNICODE character value of a character

Syntax

// Core function, no LOADLIB necessary

INTEGER FUNCTION GetUCValue(STRING str)

Parameters

STRING str

STRING from which the first character should be converted

Return value

INTEGER

The character value of the first character in the STRING

Description

Converts the first ASCII character or UTF8-sequence in a STRING to an INTEGER value

Examples

//Returns 65, the UNICODE(UTF-8) value of 'A'
INTEGER int_a := GetUCValue("Abc");

//Returns 8364, the UNICODE(UTF-8) value of '€'
INTEGER int_euro := GetUCValue("€");