Home > lang > instr 
 fr de es it nl pl pt pt_BR mk sq ca ar fa vi ja ru zh zh_TW eo
Previous  Next  Edit  Rename  Undo  Refresh  Search  Administration  
Documentation
History
 
InStr
Syntax
Position = InStr ( String AS String , Substring AS String [ , Start AS Integer , Comparison AS Integer ] )

Returns the position of the first occurrence of Substring in String.

If Start is specified, the search begins at the position Start.

Comparison can be one of the following value:

If the substring is not found, this function returns zero.

Examples

PRINT Instr("Gambas is basic", "bas")

4
PRINT Instr("Gambas is basic", "bas", 5)

11
PRINT Instr("Gambas is basic", "not")

0

See also

String Functions