Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Paradox Engine 3.0 for C - <b>syntax:</b> int pxsrchfld(tablehandle tblhandle, recordhandle rechandle, http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Syntax: int PXSrchFld(TABLEHANDLE tblHandle, RECORDHANDLE recHandle,
                      FIELDHANDLE fldHandle, int mode)

Args: tblHandle - table (file) handle
      recHandle - record buffer handle
      fldHandle - field handle (number) to search on
      mode      - determines the scope of the search:
                  SEARCHFIRST - searches from beginning of table
                  SEARCHNEXT  - searches from current record
                  CLOSESTRECORD - (indexed table only) searches from
                                  beginning of table,  but does not
                                  require an exact match.

Returns: PXSUCCESS (0) or error number

Synopsis: PXSrchFld searches a table (in index order) for the first record
   that matches the value of fldHandle. For SEARCHFIRST and SEARCHNEXT, if
   a match is not found the current record position is unchanged.

   If CLOSESTRECORD is specified as the search scope, PXSrchFld will
   attempt to locate the first record whose value is => the value of
   fldHandle. If no such record is found, the current record becomes the
   last record in the file.

   Affects public blobs.

See Also: Example Example2

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