ActiveDocument Object
233
MessageBox(sMessage, VersionText, 0);
}
}
ReadOnly
Syntax
ReadOnly: WordBool (read-only)
Description
Boolean. Returns
True
if the active document is read-only.
Example
function Main(){
with (Application){
if (ActiveDocument.ReadOnly){
MessageBox(’Current document is Read-Only’, ’Information’, 0);
}
}
}
SelStart
Syntax
SelStart: integer
Description
Gets and sets the start of the current selection.
Example
function Main(){
with (Application){
with (ActiveDocument){
// Select entire document
SelStart = 0;
CursorDocEnd(true);
}
}
}
SelLength
Syntax
SelLength: integer
Description
Gets and sets the length of the current selection.
Example
function Main() {
var sMessage;
sMessage = "The length of the selected text of your document is ";
with (Application) {
sMessage = sM ActiveDocument.SelLength;
MessageBox(sMessage, VersionText, 0);
}
}
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...