User Guide

216 Chapter 14 Scripting the Visual Tools Object Model
Example function Main(){
with (Application){
InstallParserScript(’D:\\Download\\XHTML_2.scc’, ’xhtml’);
}
}
LogMemoryStatus
Syntax LogMemoryStatus(const wsLogFile, wsDescrip: WideString);
Description Writes the current memory status to a log file, wsLogFile: logfilename. Creates
the file if it does not exist, otherwise appends status to the file. The description text
for the entry
is entered in wsDescrip: text .
Example
function Main(){
with (Application){
LogMemoryStatus(’D:\\Test\\MemLog.txt’, ’Application Start’);
}
}
MessageBox
Syntax MessageBox(const wsText, wsCaption: WideString, nType: Integer):
Integer;
Description Displays a message dialog box for obtaining a user response. The nType parameter
determines the type of dialog box displayed, and uses a combination of the following
sets of values:
MB_ICONINFORMATION = 64
MB_ICONWARNING = 48
MB_ICONQUESTION= 32
MB_ICONSTOP= 16
MB_ABORTRETRYIGNORE= 2
MB_OK = 0 (Default)
MB_OKCANCEL = 1
MB_RETRYCANCEL = 5
MB_YESNO = 4
MB_YESNOCANCEL = 3
The functions result contains the ID of the button that the user clicked.
The following ID values are allowed:
IDOK = 1
IDCANCEL = 2
IDABORT = 3
IDRETRY = 4
IDIGNORE = 5
IDYES = 6
IDNO = 7
IDCLOSE = 8