Dokumentaro de Gambaso
Compilation & Installation
Components
gb
Array
Error
gb.crypt
gb.qt4
Documents
Indekso de Lingvo
Language Overviews
LeguMin
Lexicon
Registro

String.Index (gb)

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