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

KiXtart 2001 Manual

InStrRev( )

Action: Searches a string for the presence of a second string. The search is started from the end of the source string. Note that the offset returned is counted from the beginning of the source string.
 
Syntax: INSTRREV ("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, counted from the beginning of string1

0

String2 not present in string1  
 

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

; find last backslash in @CURDIR
$x = INSTRREV(@CURDIR, "\")