GetCharAt

Strings
Aptilis 1

GetCharAt(String, Pos)

GetCharAt is used to get the ASCII code of a character inside a string without resorting to a costly getSubString.

The ASCII code of the character in position Pos from string String.

Example:

s = "Aptilis" $
for i = 1 to len(s$)
print(int(i)$, " ", getCharAt(s$, i), "\n")
end for
Result:
1 65.000000
2 112.000000
3 116.000000
4 105.000000
5 108.000000
6 105.000000
7 115.000000

See also Len.