![MACROMEDIA ColdFusion Server 5 Use Manual Download Page 233](http://html1.mh-extra.com/html/macromedia/coldfusion-server-5/coldfusion-server-5_use-manual_687499233.webp)
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.
Summary of Contents for ColdFusion Server 5
Page 18: ...xviii About This Book...
Page 26: ...8 Chapter 1 Setting Up the Product...
Page 42: ...24 Chapter 2 Configuring Browsers and Servers...
Page 60: ...42 Chapter 3 Exploring the Workspace...
Page 100: ...82 Chapter 6 Editing Pages...
Page 126: ...108 Chapter 7 Using Web Development Languages...
Page 212: ...194 Chapter 13 Customizing the Development Environment...
Page 320: ...302 Glossary...