[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
+---------------------------------+
|               AT                |
+---------------------------------+
AT(<expC1>, <expC2> [, <expN>])

-----------------------------------
Returns position of one character expression within another.
Return value - Numeric
-----------------------------------

<expC1>
        Expression to search for.

<expC2>
        Expression to be searched.

<expN>
        Specifies which occurrence of <expC1> in <expC2> to search for
(searches for the <expN>th occurrence).

+---------------------------------+
|            Examples             |
+---------------------------------+
STORE 'Now is the time for all good men ...' TO string
STORE 'is the' TO find_str
? AT(find_str,string)

STORE 'IS' TO find_str
? AT(find_str,string)

USE items
STORE 'file' to string
LIST ALL item,descript FOR AT(string,descript) > 0

STORE 'AB' TO find_str
STORE 'ABABAB' TO string
? AT(find_str,string,2)

-----------------------------------

See Also:  ATC(), LEFT(), RIGHT(), SUBSTR()

-----------------------------------

See Also: ATC() LEFT() RIGHT() SUBSTR()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson