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

-----------------------------------
Returns line number of character expression found within another without
regard for case.
Return value - Numeric
-----------------------------------

<expC1>
        Expression to search for.

<expC2>
        Expression to be searched.  Typically a memo field.

Note that the number of lines in a memo field is affected by the value
assigned to the memo field width.  This also may affect the line number
returned by the ATLINE() function.  Memo field width is controlled by
SET MEMOWIDTH.

+---------------------------------+
|             Examples            |
+---------------------------------+
CLOSE ALL
USE customer
GO TOP
CLEAR
STORE 'CALL' TO findstring

LOCATE FOR ATCLINE(findstring, comments) != 0
? company

? contact

? MLINE(comments, ATCLINE(findstring, comments))

The example below demonstrates how the memo width affects ATCLINE().

STORE '1234567890ABCDEFGHIJ' TO string
SET MEMOWIDTH TO 20
? ATCLINE ('AB', string)

SET MEMOWIDTH TO 10
? ATCLINE('AB', string)

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

See Also:  ATLINE(), MLINE(), SET MEMOWIDTH

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

See Also: ATLINE() MLINE() SET MEMOWIDTH
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson