Rinstr()

Find a Substring within a String starting from the end. The search is case sensitive.

Syntax: Position = Rinstr(Source,Find)

Example:

  dim s as string
  dim pos as byte
  s = "Hello World"
  pos = rinstr(s,"l")    ' output: 3
  pos = rinstr(s,"ld")  ' output: 10