GetByteValue (open)

Get the byte value of a character

Syntax

// Core function, no LOADLIB necessary

INTEGER FUNCTION GetByteValue(STRING str)

Parameters

STRING str

STRING from which the first byte should be converted

Return value

INTEGER

The byte value of the first byte in the string

Description

Converts the first byte in a STRING to an INTEGER value

Examples

//Returns 65, the ASCII value of 'A'
INTEGER int_a := GetByteValue("Abc");

//Returns 226, the first byte of the UTF8-sequence for the euro sign
INTEGER int_euro := GetByteValue("€");