Index

STATIC FUNCTION Index ( String AS String, Pos AS Integer ) AS Integer

Returns the index of the character at position Pos in the string.

Example

DIM iInd AS Integer
DIM sStr AS String

sStr = "Benoît"

FOR iInd = 1 TO Len(sStr)
  PRINT String.Index(sStr, iInd); " ";
NEXT
PRINT