String.Chars

Syntax

Chars(Index: Integer): Char;

Parameters

Index - index of the character in the string. Indexing starts with 0.

Description

The Chars property returns a character from the string. The index is passed as the Index input parameter.

Example

Sub Main;

Var

s, s1: String;

Begin

s := "Prognoz";

s1 := s.Chars(3);

End Sub Main;

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

See also:

String