[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
MLPOS()

    MLPOS() determines the position of a specified line number in a
    character string or memo field.

Syntax

    MLPOS(<expC>,<expN1>,<expN2>)

Arguments

    <expC> is the character string or memo field in which to count lines.

    <expN1> is the number of characters per line.

    <expN2> is the line number.

Returns

    An integer numeric value.

    MLPOS() returns the position in <expC> of the specified line number.
    If <expN2> is greater than the number of lines in <expC>, MLPOS()
    returns LEN(<expC>).

Example

    This example loads a text file from disk and then finds the position of
    the fifth line of text given a line length of 40 characters:

    string = MEMOREAD("Temp.txt")
    loc = MLPOS(string, 40, 5)   

See Also: HARDCR MLCOUNT MEMOEDIT MEMOREAD MEMOTRAN MEMOWRIT
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson