getChar


function getChar(str: string; pos:integer): char;

Returns the character at a given index within the string. The first character in a string is at index 0. If 'pos' is larger than the length of the string, character with ASCII code '0' is returned.

See also: setChar