230
ActiveDocument Object
Use the
editor. To access an open document that is not active, use the
Application.DocumentCache
Properties
CanRedo
Syntax
CanRedo: WordBool (read-only)
Boolean. Returns
Description
Example
function Main() {
var sMessage;
sMessage = "CanRedo : ";
with (Application) {
If(ActiveDocument.CanRedo)
Else
MessageBox(sMessage, VersionText, 0);
}
}
CanUndo
Syntax
CanUndo: WordBool (read-only)
Description
Boolean. Returns
Example
function Main() {
var sMessage;
sMessage = "CanUndo : ";
with (Application) {
If(ActiveDocument.CanUndo)
Else
MessageBox(sMessage, VersionText, 0);
}
}
object to refer to the document currently displayed in the
ActiveDocument
object.
if changes can be re-done.
True
sMessage = sMessage + "Yes";
sMessage = sMessage + "No";
if changes can be undone.
True
sMessage = sMessage + "Yes";
sMessage = sMessage + "No";
Chapter 14 Scripting the Visual Tools Object Model
Need help?
Do you have a question about the COLDFUSION STUDIO 5-USING COLDFUSION 5 STUDIO and is the answer not in the manual?