Silverfrost Logo About Us | Contact Us
 

CHAR

Platform

x64, Win32, .NET

Purpose

To get the character in a given position of the collating sequence associated with the specified kind type parameter.

Class

Elemental function.

Syntax

CHARACTER FUNCTION CHAR(I [,KIND])
INTEGER I, KIND

Description

I represents the position in the collating sequence numbering from zero. KIND is optional and can be used to specify the (scalar) kind type parameter of the character set. If KIND is not present the default character set is used. CHAR is the inverse of the intrinsic function ICHAR .

Return value

The result is a character of length one.

Example

CHAR(97) gives 'a' when used with the ASCII collating sequence.

 

 

Copyright © 1999-2017 Silverfrost Limited