SourcePoint AMD Help

Table of Contents

logmessage

Display a user-defined message in the Log window.

Syntax

logmessage(type, string-expr1, string-expr2)

Where:

type

specifies the type of message (see below).

string-expr1

specifies the text to display in the component field; can be an nstring variable or string constant.

string-expr2

specifies the text to display in the message field; can be an nstring variable or string constant.

Discussion

The logmessage function adds a user-defined message in the Log window.

The type argument specifies the log message type:

LOG_ERROR      Display an error message

LOG_WARNING    Display a warning message

LOG_INFO       Display an informational message

Example

To add an error log message in the Log window:

Command input:

logmessage(LOG_ERROR, "user macro", "This is a test")