A function added by MWSE.
xLogMessage writes out formatted strings to the log file (MWSELog.txt) Works much like MessageBox but with the additional formatting options described for xStringBuild. A trailing % in the format string will suppress the printing of the new line sequence allowing a single line of text to be created with two or more xLogMessage calls. The number of parameters specified in the formatstring MUST match those supplied or there will be trouble.
SyntaxEdit
xLogMessage format (string), ...
ExampleEdit
long target long id long name long oldtarget setx target to xgetPCtarget ifx ( target ) setx id to target->xRefID setx name to target->xGetName if ( oldtarget == target ) return endif xLogMessage "%s %s" id name messagebox "new target" set oldtarget to target endif