StrRPos

combit List & Label Designer

combit List & Label

StrRPos

Purpose:

Returns the position of a search string within a string. This is a backwards search. The third parameter, determines which appearance will be returned. Default is 1.

The first character in the string has the position 0.

-1 as return value signifies the search string no longer appears.

Parameter:

String

String             Search string

Number       (optional)

Return value:

Number

Examples:

StrRPos("Normalconsumer","or")                 Result: 1

StrRPos("Normalconsumer","r")                  Result: 13

StrRPos("Normalconsumer","r",1)                Result: 13

StrRPos("Normalconsumer","r",2)                Result: 2