202
Chapter 14 Scripting the Visual Tools Object Model
DocumentCount
Syntax
DocumentCount: integer (read-only)
Description
Number of open documents.
Example
function Main() {
Var sMessage;
with (Application){
sMessage = "There are ";
sMessage = sM sDocumen " open.\n";
// Get the number of open documents.
sMessage = sM sDocumen ".\n";
// Get the index of the current document.
}
}
DocumentIndex
Syntax
DocumentIndex: Integer
Description
Tab index of current document.
Example
function Main() {
Var sMessage;
with (Application){
sMessage = "There are ";
sMessage = sM sDocumen " open.\n";
// Get the number of open documents.
sMessage = sM sDocumen ".\n";
// Get the index of the current document.
}
}
ExeName
Syntax
ExeName: OleString (read-only)
Description
File name of application executable, including path.
Example
function Main() {
Var sExeName;
with (Application){
sExeName = ExeName; // Store the path in a variable
}
}
Содержание 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...