StrAt (Kernel)

StrAt(aString index [replacement])

StrAt has two functions. It can be used to retreive the char at the specified index in aString, or it can be used to set the character to replacement at the specified index in aString. It returns the character at aString[index].

Parameters:
  • aString (string) – The text string.
  • index (number) – The index into the text string.
  • replacement (number) – The optional character place at that index.
Returns:

The character at the index specified.