IB Statements/log

From CometWiki

(Difference between revisions)
Jump to: navigation, search
(New page: '''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 start...)
Line 1: Line 1:
'''LOG statement'''  
'''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.   
+
'''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-expression  
+
'''Syntax:'''  DebugMsg$ = "After READ id$ = " + id$ & LOG DebugMsg$  
'''Example:'''  LOG “Program XYZ is now running.”
'''Example:'''  LOG “Program XYZ is now running.”

Revision as of 00:22, 5 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: DebugMsg$ = "After READ id$ = " + id$ & LOG DebugMsg$

Example: LOG “Program XYZ is now running.”

.

LOG “Program XYZ is complete.”

RUN “QMONITOR”

END

Personal tools