Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- FUNCky - <b>name:</b> <b>atlast() - get position of last occurrence of a char</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  Name:     atlast() - get position of last occurrence of a char
  Usage:    <integer> = atlast(<char>,<string>)
  Params:   character <char> - the character to search for
            string <string> - the string to search in
  Returns:  integer equal to the position of the last occurrence of
            <char> within <string>, 0 if not found

 ---------------------------------- Example ---------------------------------

                 ? atlast("D","ABCDEFEDE")
                 * prints 8

                 memvar = "ABCDCBA"
                 ? substr(memvar,1,atlast("C",memvar))
                 * prints "ABCDC"


See Also: atnext() chrcount() chrfound() chrswap()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson