Function : Text List Manipulation

ListAddText - Add a string to a empty text list entry.
----------------------------------------------------------------------------------------------------------

#include <textlist.h>

STATUS LNPUBLIC ListAddText(
void far *pList,
BOOL fPrefixDataType,
WORD EntryNumber,
const char far *Text,
WORD TextSize);

Description :

This function adds a string to an entry in a text list that does not currently have a string associated with it. The list must be of sufficient size, so that the unused portion can accommodate the new text string. Use ListAddEntry if there is not already pre-allocated space for the new text string to be added to an existing entry.

This function may be used to add text to an existing text list item. First use OSLockBlock on the value_blockid returned by NSFItemInfo for the text list item. The pointer returned by OSLockBlock contains the address of the text list within the note. ListAddText can then be used to add the new text string to the text list item.

This function can be used to substitute text for a list entry if the old and new text strings are the same length.

Parameters :

Sample Usage :


  if (error_status = ListAddText(old_list_ptr, old_prefix_flag,
                                 FIRST_ENTRY,
                                 STRINGX, strlen(STRINGX)))
      goto Exit;


See Also :

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