PdcInfo.CreateLogEntry
Declaration
CreateLogEntry(Text as string, EntryType as integer, CalcNo as string) as boolean
Description
Creates a log entry in de PdC logfile.
Notes
The createlogentry method has the following parameters: 1. Text: The text of the log entry. 2. EntryType: The type of the log entry with the values 0 to 4.
0 = Error 1 = Info 2 = Warning 3 = Delete 4 = None
3. CalcNo: Apply the calculation number only if needed.
Code example
if pdc.Info.CreateLogEntry("Text to add to the logfile", 4, "") then
msgbox "The message is created."
else
msgbox pdc.LastError
end if
Availability
Available since Mai 2014 (from version 4.3)