Util.Chr

Top  Previous  Next

 

Syntax

function Util.Chr(Value: integer): string

 

Alternative Names

ibec_Chr

 

Description

Converts an ordinal value to a character, as per ASCII specification. This is the opposite of the Util.Ord function.

 

The Return Value is the Value but converted to a character.

 

See Also

Util.Ord

 

Example

execute UDSBlock

as

begin

  /* Get ASCII value of 'A', which is 65 */

  IntValue = Util.Ord('A');

 

  /* Convert character ordinal value to character */

  StrValue = Util.Chr(IntValue);

  

  GUI.ShowMessage('Character "' || StrValue || '" has an ordinal value of ' || IntValue);

end