Function : Item (Field)

NSFItemInfo - Get information about an item (field) in a note.
----------------------------------------------------------------------------------------------------------

#include <nsfnote.h>

STATUS LNPUBLIC NSFItemInfo(
NOTEHANDLE note_handle,
const char far *item_name,
WORD name_len,
BLOCKID far *item_blockid,
WORD far *value_datatype,
BLOCKID far *value_blockid,
DWORD far *value_len);

Description :

This function gets information about a particular item (field) in a note. The function's inputs are a handle to an open note and the name of the field you are looking for. It yields the item header, the data type, the item's value, and the length of the item's value.

Items in a note are ordered. You can get information about the first item in the note, regardless of its name, by specifying NULL for the field name.

The BLOCKID values obtained using this function refer to memory within a note. This memory is managed by Domino and Notes, and should not be freed by the application.

Parameters :

Sample Usage :

   /* Obtain the old list */

  if (error_status = NSFItemInfo(note_handle, ITEM_NAME,
                                 strlen(ITEM_NAME), &item_bid,
                                 &value_datatype, &value_bid,
                                 &value_size))
      goto Exit;

  old_list_ptr = OSLockBlock(char, value_bid);

  if (old_list_ptr != NULL)
      cleanup_state += UNLOCK_VALUEBID;

 /* Step over the data type word to point to the actual data */
  old_list_ptr += sizeof(WORD);


See Also :

NSFItemInfoNext
----------------------------------------------------------------------------------------------------------