Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Library for Clipper - <b>l_atnext()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
                                 L_ATNEXT()


Syntax:        L_ATNEXT(<expC1>,<expC2>,<expN>)


Purpose:       Determine the <n>th occurrence of <expC1> within
               <expC2>


Arguments:     <expC1> string to be searched for in string

               <expC2> string to be searched

               <expN> the <n>th occurrence of <expC1> within <expC2>


Returns:       The starting position of the <n>th occurrence of
               <expC1> within <expC2>



Examples:      str1 = "Hello World Hello"
               str2 = "Hello"
               occurrence = 2

               ? L_ATNEXT(str2,str1,occurrence)   && Result: 13


Notes:          The search operation is case sensitive.


Language:      C

See Also: L_ATTIMES() L_CHRCOUNT() L_CHRFOUND()

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