String.Pos (gb)

Static Function Pos ( String As String, Index As Integer ) As Integer

Returns the position of the character of index Index in the string.

Examples

DIM iInd AS Integer

FOR iInd = 1 TO 6
  PRINT String.Pos("Benoît", iInd); " ";
NEXT
PRINT
1 2 3 4 5 7