IB Statements/log
From CometWiki
< IB Statements(Difference between revisions)
(One intermediate revision not shown) | |||
Line 6: | Line 6: | ||
'''Example:''' LOG “Program XYZ is now running.” | '''Example:''' LOG “Program XYZ is now running.” | ||
- | |||
. | . | ||
Line 15: | Line 14: | ||
END | END | ||
+ | |||
+ | - OR - | ||
+ | |||
+ | '''Example:''' DebugMsg$ = "After READ id$ = " + id$ & LOG DebugMsg$ |
Latest revision as of 00:52, 6 January 2010
LOG statement
Discussion: The LOG statement writes a specified string to the user’s startup details log. This is a convenient way to log when a particular program is started or stopped. It can also be very helpful for writing debug trace messages to yourself! :-)
Syntax: LOG string-argument
Example: LOG “Program XYZ is now running.”
.
LOG “Program XYZ is complete.”
RUN “QMONITOR”
END
- OR -
Example: DebugMsg$ = "After READ id$ = " + id$ & LOG DebugMsg$