comp • gb • string • index

String.Index (gb)

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

Retorna o índice do caracter na posição Pos dentro da 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