ActiveDocument Object
CaretPosX
Syntax
CaretPosX: integer (read-only)
The X-axis caret position.
Description
Example
function Main(){
with (Application){
if (ActiveDocument.CaretPosX > 1){
}
}
}
CaretPosY
Syntax
CaretPosY: integer (read-only)
Description
The Y-axis caret position.
Example
function Main(){
with (Application){
if (ActiveDocument.CaretPosY > 1){
}
}
}
Filename
Syntax
Filename: OleString (read-only)
File name of the active document.
Description
Example
function Main() {
var sMessage;
sMessage = "Your file name is: ";
with (Application) {
sMessage = sMessage + ActiveDocument.Filename;
MessageBox(sMessage, VersionText, 0);
}
}
ActiveDocument.CursorLineStart(false);
ActiveDocument.CursorDocStart(false);
231
Need help?
Do you have a question about the COLDFUSION STUDIO 5-USING COLDFUSION 5 STUDIO and is the answer not in the manual?