[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Function            LOOKFLD()
Action              Interactive locate on any field
Returns
Category            Metafunction
Syntax              LOOKFLD([array1],[array2])
Description
                    Lookfld() pops up a window of the fields, and then
                    asks for a <range of> value(s) to search for.
                    If a LOCATE is successful, the next call to
                    lookfld() will optionally do a CONTINUE.
Options
                    Arrays of FIELDS [array1] and FIELD DESCRIPTION
                    [array2] may be sent as params, and the selection is
                    then limited to the fields in these arrays
Examples
                    if choice = 5 && search for date
                      LOOKFLD()
                    endif
                    ....or
                    * assumes fields[] and fdesc[] exist
                    if choice = 5 && search for date
                      LOOKFLD(m->fields,m->fdesc)
                    endif

Notes               RECORD POINTER IS LEFT ON NEW RECORD IF FOUND

                    The variable lf_cont_  is made public. lf_cont_
                    determines if a CONTINUE is appropriate.

                    The variables lk_fld_ and lk_lookr are declared public
                    as they are a variable part of the LOOKUP command to be
                    given. Since we will exit this function but we want
                    these vars to survive for a CONTINUE, they are declared
                    public. If they were not declared public, a continue
                    would not be possible.

                    Best description: open a DBF and call LOOKFLD()

Warnings            Cursor is left ON
Found in (prg)......S_LOOKF.PRG

This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson