Function : ID Table

IDIsPresent - Determine if ID is present in an ID Table.
----------------------------------------------------------------------------------------------------------

#include <idtable.h>

BOOL LNPUBLIC IDIsPresent(
DHANDLE hTable,
DWORD id
);

Description :

This is a function takes a HANDLE to an ID Table and a DWORD containing a note ID, and returns whether the DWORD is present in the ID Table.

Parameters :

Sample Usage :


  /* Demo using one table to cleanup another - safe way */

          notes_scanned = 0L;
          while(IDScan(cpytable_handle,
                       (FLAG)(notes_scanned++==0L), &note_id))
          {
              if (IDIsPresent(idtable_handle, note_id))
              {
                  error_status = IDDelete(idtable_handle,
                                               note_id, &ok_flag);
                  if (!ok_flag || error_status)
                  {
                      printf("\nIDDelete from idtable failed.\n");
                      goto Exit;
                  }
              }
          }



See Also :

IDCreateTable
----------------------------------------------------------------------------------------------------------