Function : Database

NSFDbStampNotes - Set same item value for every note in ID Table.
----------------------------------------------------------------------------------------------------------

#include <nsfdb.h>

STATUS LNPUBLIC NSFDbStampNotes(
DBHANDLE hDB,
DHANDLE hTable,
const char far *ItemName,
WORD ItemNameLength,
void far *Data,
WORD DataLength);

Description :

This function takes a given item value and stores it in all the notes specified by an ID Table. It overwrites the current item value, thereby updating the last modified time/date of each Note processed. If the item does not exist or is of a different data type, NSFDbStampNotes() will create/delete the item and append the new value as required.

Parameters :

Sample Usage :



  /* Please note that the first WORD of text_item_value was already */
  /* set to TYPE_TEXT and text_item_size was adjusted accordingly.  */

      case STAMP_NOTES:
           printf(" will be Stamped\n");
           if (!(dataset_state & HAVE_CATEGORY))
           {
               printf("You must supply a category for action: -C\n");
               goto Exit;
           }
           if ( error_status = NSFDbStampNotes(db_handle_src,
                                idtable_handle, CATEGORIES_ITEM_NAME,
                                strlen(CATEGORIES_ITEM_NAME),
                                text_item_value,
                                text_item_size))
               goto Exit;
           break;


See Also :

NSFDbGetModifiedNoteTable
----------------------------------------------------------------------------------------------------------