SiMX Help‎ > ‎The Target Platform‎ > ‎Objects‎ > ‎TARGET Object‎ > ‎

target.Message


Platform Objects


Description

Outputs a text message to the end user. Can be used for debugging purposes. If TextConverter is running in a batch mode, the messages are placed into a log file. If TextConverter is automated from other programming environments, the error message is returned to the calling function.


Syntax


Function Message(text, error)


Parameters


string text - a message to be shown to the end user
boolean error - true: show the message as an error; false: show as an information message


Return value


none


Example

Sample code

Function OnRecord
Dim s, c, i, p1, p2 

s = DictIn.Field_1.value

SetByTag v(1),  s, "DATE:", " "

This.SkipRecord
End Function

'Target.Message This.GetRecordNumber() & " - " & s


See also

Platform Objects and Methods
target.Min
target.RunOnce
Target Methods