Function : Database

NSFDbGetSpecialNoteID - Get Note ID of Policy, Help or other special notes.
----------------------------------------------------------------------------------------------------------

#include <nsfdb.h>

STATUS LNPUBLIC NSFDbGetSpecialNoteID(
DBHANDLE hDB,
WORD Index,
NOTEID far *retNoteID);

Description :

This function allows you to obtain the Note ID (NOTEID) of several unique database documents. It is quicker and less complicated than NSFSearch (sequential access with an action routine) using various NOTE_CLASS_xxx combinations and/or formula.

Parameters :

Sample Usage :


  /* Find some SPECIAL notes */

 if (error_status = NSFDbGetSpecialNoteID(db_handle_src,
                         SPECIAL_ID_NOTE | NOTE_CLASS_INFO,
                         &policy_nid_src))
  {
      if (ERR(error_status) == ERR_SPECIAL_ID)
          printf("\n%s has no Policy Note\n", src_name);
      else
          goto Exit;
  }


See Also :

NOTE_CLASS_xxx
----------------------------------------------------------------------------------------------------------