Click here to return to the KiXtart HelpDesk main page...

KiXtart 2001 Manual

InStr( )

Action: Scans a string (from left to right) for the presence of a second string.
 
Syntax: INSTR ("string1", "string2")
 
Parameters:

String1

The string to search in.

String2

The string to search for.

Returns:

?

Offset of the first character of string2 found in string1

0

String2 not present in string1  
 

See Also: InStrRev( ), Left( ), Right( ), SubStr( )
 
Example:

; check if domain contains the string "TEST"
$x = INSTR(@DOMAIN, "TEST")