rinstr$

Syntax

position = RINSTR$(start, text, search_key)

Arguments

position, start: integer

search_key, text: text

Meaning

Searches for the character string search_key in text, starting at position start and working back to position ‘1’ in text. Returns the start position if found, otherwise ‘0’.

Example

position = rinstr$(11, 'ABCDefGHBCefg', ’BC’)

Result

position is 9.

See also

INSTR$