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 function’s 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
Содержание ColdFusion Server 5
Страница 18: ...xviii About This Book...
Страница 26: ...8 Chapter 1 Setting Up the Product...
Страница 42: ...24 Chapter 2 Configuring Browsers and Servers...
Страница 60: ...42 Chapter 3 Exploring the Workspace...
Страница 100: ...82 Chapter 6 Editing Pages...
Страница 126: ...108 Chapter 7 Using Web Development Languages...
Страница 212: ...194 Chapter 13 Customizing the Development Environment...
Страница 320: ...302 Glossary...