Application Object
223
Example
function Main(){
with (Application){
if (ActiveDocument.Modified){
StatusError(’Current document is modified’);
}
}
}
StatusWarning
Syntax
StatusWarning(const wsMsg: WideString);
Description
Displays a warning message in the status bar. Message appears on a blue background
and displays for at least 5 seconds.
Example
function Main(){
with (Application){
if (ActiveDocument.ReadOnly){
StatusWarning(’Current document is read-only’);
}
}
}
TagCase
Syntax
TagCase(const wsTag: WideString): WideString;
Description
Changes the case of the passed string based on the "Lowercase all inserted tags"
setting in the HTML panel in the Options > Settings dialog box. Does not modify the
case of attribute values.
Example
function Main(){
with (Application){
ActiveDocument.InsertText(TagCase(’<a href="http://
www.macromedia.com"’), false);
}
}
ToolbarDir
Syntax
ToolbarDir: WideString (read-only);
Description
Returns the path where toolbar files are located.
Example
function Main(){
with (Application){
CurrentFolder = ToolbarDir;
}
}
Содержание 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...