Function : Database

NSFDbGetModifiedNoteTable - Get ID Table of notes modified during a time span.
----------------------------------------------------------------------------------------------------------

#include <nsfdb.h>

STATUS LNPUBLIC NSFDbGetModifiedNoteTable(
DBHANDLE hDB,
WORD NoteClassMask,
TIMEDATE Since,
TIMEDATE far *retUntil,
DHANDLE far *rethTable);

Description :

This function takes a database handle, note class mask, and starting time/date. It returns a handle to an ID Table of Note IDs of notes which have been modified in some way from the given starting time until "now". The ending time/date is returned, so that this function can be performed incrementally.

Except when TIMEDATE_MINIMUM is specified, the IDs of notes deleted during the time span will also be returned in the ID Table, and the IDs of these deleted notes have been ORed with RRV_DELETED before being added to the table. You must check the RRV_DELETED flag when using the resulting table.

Note: If there are NO modified or deleted notes in the database since the specified time, the error ERR_NO_MODIFIED_NOTES will be returned. Since this is most likely not a fatal error to the application, you should check for this error code explicitly.

Note: You program is responsible for freeing any memory associated with a valid handle returned in argument 5.

Parameters :

Sample Usage :



  /* Get the requested Notes */

  if (error_status = NSFDbGetModifiedNoteTable(db_handle_src,
                      NOTE_CLASS_DOCUMENT,
                      begin_td, &end_td, &idtable_handle))
  {
      if (ERR(error_status) == ERR_NO_MODIFIED_NOTES)
      {
          printf("\n%s contains no data notes from:\n",
                 src_name);
          if (strlen(begin_str))
              printf("\tBegin date: %s\n", begin_str);
          else
              printf("\tBegin date: Beginning of Cosmos\n");
          printf("\tthrough End date: %s\n", end_str);
          goto Exit;
      }
      else
          goto Exit;
  }


See Also :

IDEnumerate
----------------------------------------------------------------------------------------------------------