fr de es it nl pl pt pt_BR mk sq ca ar fa vi ja ru zh zh_TW eo
Home > comp > gb > string > index
 
Previous  Next  Edit  Rename  Undo  Refresh  Search  Administration 
-> 3.0
 
Documentation
History
 
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

1 2 3 4 5 5 6