Function : Log

LogAddTextlistItem - Add text to a text list in a log entry.
----------------------------------------------------------------------------------------------------------

#include <log.h>

STATUS LNPUBLIC LogAddTextlistItem(
WORD LogEntry,
WORD Flags,
char far *ItemName,
char far *Text);

Description :

This function takes a log entry number, a lock entry flag, the name of the text list item, and a null-terminated string. It appends the string as the next entry in the named text list. If there is no text list item by that name, the function creates one and then adds the string as the first entry in the list.

Please note that if you determine at some point in your algorithm that you would like to change the contents of the text list item, the only means at your disposal is the complete destruction of the log entry via LogCloseEntry. The log entry enables you to record selected data from a chronologically ordered stream of events, it should not be looked upon as a database record whose contents are completely modifiable at any time. You may wish to create other types of notes in your application's database to provide that capability.

Parameters :

Sample Usage :

/* Add a Text List Item to the AddinEvent form */

sprintf(item_name, "%s", "AddInEvents");
AddInFormatError(error_msg, MSG_SMKADDN_NAMESTUB,
                   "Creating Task Statistics");
if (error_status = LogAddTextlistItem(log_entry,
                                   LOG_LEAVE_LOCKED, item_name,
                                   error_msg))
  goto Exit;


See Also :

LogAddNumberItem
----------------------------------------------------------------------------------------------------------