
Application Object
215
with (Application) {
sInput = InputBox(VersionText, "What is your name?", "Alex");
sOutput = "I know you, your name is " + ".";
MessageBox (sOutput, VersionText, 0);
}
}
IsFileOpen
Syntax
IsFileOpen(sFile: OleVariant): WordBool;
Description
Boolean. Returns
True
if the passed file is open in the Document tab.
Example
function Main(){
sFile = ’D:\\Test\\index.html’;
with (Application){
if (!IsFileOpen(sFile)){
OpenFile(sFile);
}
}
}
IsFileModified
Syntax
IsFileModified(sFile: OleVariant): WordBool;
Description
Boolean. Returns
True
if the passed file is open in the Document tab and was
modified.
Example
function Main(){
with (Application){
// Save current file if it is modified
if (IsFileModified(ActiveDocument.FileName)){
ActiveDocument.Save();
}
}
}
InstallParserScript
Syntax
InstallParserScript(const wsScriptFile, wsFileExtAssoc: WideString):
WordBool;
Description
Boolean. Returns
False
on error. Installs a parser (color-coding) script and
associates it with the passed list of semicolon-separated file extensions. If an existing
parser is assigned to any of these extensions, they are removed from the existing
parser and assigned to the new one. The parser script is copied from the passed
location to the application \Parsers subdirectory.
Содержание 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...