Function : Text List Manipulation

ListGetText - Obtain a string from a text list.
----------------------------------------------------------------------------------------------------------

#include <textlist.h>

STATUS LNPUBLIC ListGetText(
void far *pList,
BOOL fPrefixDataType,
WORD EntryNumber,
char far * far *retTextPointer,
WORD far *retTextLength);

Description :

This function obtains a specific entry from an existing text list, then returns that text entry and its length. If OSLockBlock is used with a value_blockid returned by NSFItemInfo, the pointer returned by OSLockBlock contains the address of the text list within the text list item of the existing note. This function can then be used to obtain any string already in the text list item.

Parameters :

Sample Usage :


  for (curr_entry_num = FIRST_ENTRY; curr_entry_num < last_entry_num;
       curr_entry_num++)
  {
      if (error_status = ListGetText(old_list_ptr, old_prefix_flag,
                                     curr_entry_num,
                                     &string_ptr, &string_length))
          break;
      if (error_status = ListAddEntry (list_handle, prefix_flag,
                                       &list_size, curr_entry_num,
                                       string_ptr, string_length))
          break;
  }


See Also :

ListAllocate
----------------------------------------------------------------------------------------------------------