3.5.7.12 GetAt

Description

Returns a single character specified by an index number.

Syntax

 int GetAt(string str$, int index)

Parameters

str

is the string that you want to get the character.

index

index to specify the character.

Return

Return a char containing the character at the specified position in the string.

Example

i=GetAt("sss abc def", 5);
i=;  //should print out 97, a's ASCII code