Function : Item (Field)

NSFItemGetLong - Return value of TYPE_NUMBER item as a LONG.
----------------------------------------------------------------------------------------------------------

#include <nsfnote.h>

LONG LNPUBLIC NSFItemGetLong(
NOTEHANDLE note_handle,
const char far *number_item_name,
LONG number_item_default);

Description :

This function takes a handle to an open note, the name for the item whose value you wish to get and a default value to be returned by the function.

Parameters :

Sample Usage :

/* Print ULONG ITEM */

  if (NSFItemIsPresent(note1_handle,ULONG_ITEM, strlen(ULONG_ITEM)))
      printf("%s: %lu\n", ULONG_ITEM,
             (NSFItemGetLong(note1_handle, ULONG_ITEM, 0L)));


See Also :

NSFItemGetNumber
----------------------------------------------------------------------------------------------------------