Home / comp / gb / string / index 
String.Index (gb)
Syntax
STATIC FUNCTION Index ( String AS String, Byte AS Integer ) AS Integer
Returns the index of the character at position Pos in the string.

Examples

DIM iInd AS Integer
DIM sStr AS String

sStr = "BenoƮt"

FOR iInd = 1 TO Len(sStr)
  PRINT String.Index(sStr, iInd); " ";
NEXT
PRINT
<hr>1 2 3 4 5 5 6