LastChar
Function LastChar(haystack: String, needle: String) : Integer
Returns the Integer position of the last occurance of needle in haystack
Does what it says on the tin.
Example:
Program
Uses basilisk, pure2d
Begin
InitBasilisk(TRUE)
OpenScreen(640,480,32,FALSE,COB_SHOWCLOSE+COB_SHOWBORDER)
Text(10,10,"this is my string")
Text(10,30,"Last 'i' is found at position: "+LastChar("this is my string","i"))
While Not ExitRequested
Flip
Pause(2)
Wend
End