228
Chapter 15 Scripting the Visual Tools Object Model
}
default: {
sMessage = 'an unknown application type';
}MessageBox('You are enjoying ' + sM '.',
'Application Type', 0);
}
AppPath
Syntax
AppPath: OleString (read-only)
Description
Path to application executable.
Example
function Main() {
var sPath;
with (Application) {
sPath = AppPath; // Store the path in a variable
}
}
CurrentFolder
Syntax
CurrentFolder: OleString
Description
Path currently displayed in the local file list.
Example
function Main(){
with (Application){
CurrentFolder = 'C:\\InetPub\\wwwroot';
}
}
CurrentView
Syntax
CurrentView: ITCurrentViewType
Description
Sets/gets the current view.
The following values are allowed:
1 - vwEditSource
2 - vwPreview (browse)
3 - vwHelp
The value 3 applies only if the Help tab is already visible in the application.
Example
function Main() {
with (Application){
CurrentView = 2; // Set the view to Browse
}
}
Содержание 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...