Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Tom Rettigs Library - atnext(<c character>, <c string>, <n occurrence>) http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 ATNEXT(<C character>, <C string>, <N occurrence>)
 Evaluates position of the <n>th occurrence of character in a string.
 Returns <expN> position of <occurrence> of <character> in <string>.

 If LEN(<character>) is greater than 1, only the first character is
 looked at.

 ATNEXT( "A", "AAABBaCdda", 0) returns  0
 ATNEXT( "A", "AAABBaCdda", 1) returns  1
 ATNEXT( "A", "AAABBaCdda", 2) returns  2
 ATNEXT( "A", "AAABBaCdda", 3) returns  3
 ATNEXT( "A", "AAABBaCdda", 4) returns  0

 ATNEXT( "a", "AAABBaCdda", 1) returns  6
 ATNEXT( "a", "AAABBaCdda", 2) returns 10
 ATNEXT( "a", "AAABBaCdda", 3) returns  0


             Placed in the Public Domain by Tom Rettig Assoc.

See Also: ATLAST() CHRCOUNT() WRAP()

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