244
Chapter 15 Scripting the Visual Tools Object Model
}
}
}
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
Содержание HOMESITE
Страница 11: ...Contents xi Table of CommandID values 310 Table of SettingID values 314 Glossary 323...
Страница 12: ...xii Contents...
Страница 20: ...xx About This Book...
Страница 28: ...8 Chapter 1 Setting Up the Product...
Страница 70: ...50 Chapter 4 Managing Files...
Страница 88: ...68 Chapter 5 Writing Code and Web Content...
Страница 116: ...96 Chapter 6 Editing Pages...
Страница 148: ...128 Chapter 7 Using Web Development Languages...
Страница 190: ...170 Chapter 11 Deploying Files...
Страница 210: ...190 Chapter 12 Testing and Maintaining Web Pages...
Страница 216: ...196 Chapter 13 Extending the Help System...
Страница 350: ...330 Glossary...
Страница 358: ...338 Index...