WriteLogLine

Top  Previous  Next

×V2.1Ø

S

A

W

WS

ü

Syntax -

WriteLogLine <FileID> <StringValue1> ... <StringValueX>

        Where:

               <FileID> is a literal string, a variable that contains a literal string or an integer, a variable that contains an integer or an unquoted user defined name assigned to the file

       <StringValueX> is a literal string or a variable that contains a literal string.

 

Description:

This command works the same way that a LOG or WriteLog statement does, except that there is a new line character added to the end of the text.  <StringValueX> can be a literal string such as "Beginning Processing," *SCREEN, which causes the contents of the current screen to be written to the log file, or a script variable that contains a literal string.

 

Notes:  The log file must be opened with OpenLog before it can be written to.

If the user defined name is the same as a variable that is currently in the script, then the contents of the variable will be used as the <FileID>

 

Sample 1:

       The following example opens a new log file and writes to it.

Copy PTID File 1 11

OpenLog "File 1" "C:\EMUE\Script1\LogFiles\Log_#TIME#_#DATE#.txt"

WriteLogLine "File 1" "Patient ID: " PTID

CloseLog "File 1"

 

Sample 2:

       The following example opens a new log file and writes to it.

Copy PTID File 1 11

OpenLog Output "C:\EMUE\Script1\LogFiles\Log_#TIME#_#DATE#.txt"

WriteLogLine Output "Patient ID: " PTID "\n"

CloseLog Output

 

See Also:

OpenLog

GetLogName

WriteLog

CloseLog

 

 

 

.