Function : ID Table

IDEnumerate - Calls action routine for each ID in an ID Table.
----------------------------------------------------------------------------------------------------------

#include <idtable.h>

STATUS LNPUBLIC IDEnumerate(
DHANDLE hTable,
IDENUMERATEPROC Routine,
void far *Parameter);

Description :

This function takes a handle to an ID Table, the address of an action routine, and a pointer of your choosing. It calls the action routine with each note ID in the ID Table and the user supplied parameter, until the ID Table is exhausted. If the routine returns an error, IDEnumerate will halt and pass it back.

ID Tables are ordered by ID value. IDEnumerate calls the action routine in the order in which the IDs are stored in the table.

Parameters :

Sample Usage :

             IDENUMERATEPROC  lpIDProc;
          lpIDProc = (IDENUMERATEPROC) MakeProcInstance
              ((FARPROC)TouchNotes);
          error_status = IDEnumerate(cpytable_handle,
                                     lpIDProc,
                                     &db_handle_src);
          FreeProcInstance(lpIDProc);
         


See Also :

IDENUMERATEPROC
----------------------------------------------------------------------------------------------------------