String.Chars

Syntax

Chars(Index: Integer): Char;

Parameters

Index. index of character in a string. Indexing starts from 0.

Description

The Chars property returns the character with the specified index from character string.

Example

Sub Main;
Var
    s, s1: String;
Begin
    s := 
"String";
    s1 := s.Chars(
3);
End Sub Main;

After executing the example the "s1" variable will contain the "g" value.

See also:

String