242
Chapter 14 Scripting the Visual Tools Object Model
Example
function Main() {
var sMessage;
sMessage = "Your file name is: ";
with (Application) {
sMessage = sM DocumentCache (0).Filename;
}
}
Modified
Syntax
Modified: WordBool (read-only)
Description
Boolean. Returns
True
if the cached document changed since it was last saved.
Example
function Main() {
var sMessage;
sMessage = "Modified: ";
with (Application) {
If(DocumentCache (0).Modified)
sMessage = sM "Yes";
Else
sMessage = sM "No";
MessageBox(sMessage, VersionText, 0);
}
}
ReadOnly
Syntax
ReadOnly: WordBool (read-only)
Description
Boolean. Returns
True
if the cached document is read-only.
Example
function Main() {
var sMessage;
sMessage = "Read-only: ";
with (Application) {
If(DocumentCache (0).ReadOnly)
sMessage = sM "Yes";
Else
sMessage = sM "No";
MessageBox(sMessage, VersionText, 0);
}
}
Содержание 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...