236
}
finally{
}
MessageBox('Total tags: ' + iTags, 'Tag Count', 0);
}
}
GetCaretPos
Syntax
GetCaretPos(var x, y: integer);
Description
Returns the caret pos (x=column, y=line).
GetCurrentChar
Syntax
GetCurrentChar(): OleVariant;
Description
Returns the current character.
GetNextChar
Syntax
GetNextChar(): OleVariant;
Description
Returns the next character. If you use this function, along with
long loops, the code can run slowly.
GetPreviousChar
Syntax
GetPreviousChar(): OleVariant;
Returns the previous character.
Description
GetTagAtCursor
Syntax
GetTagAtCursor(wbSelect: WordBool): WideString;
Boolean. Returns the tag in which the cursor is currently located in the editor. If a tag
Description
cannot be identified, the method returns an empty string.
If
wbSelect
Example
// Displays a message box with the current tag
function Main() {
with (Application) {
MessageBox(ActiveDocument.GetTagAtCursor(false), 'Current Tag At
}
}
ActiveDocument.EndUpdate();
is
, the tag is highlighted in the document.
True
Cursor', 0);
Chapter 14 Scripting the Visual Tools Object Model
in
GetPreviousChar,
Need help?
Do you have a question about the COLDFUSION STUDIO 5-USING COLDFUSION 5 STUDIO and is the answer not in the manual?