MACROMEDIA COLDFUSION STUDIO 4.5-USING COLDFUSION STUDIO Use Manual page 212

For windows 95/98/nt4/2000
Table of Contents

Advertisement

220
GetTagAtCursor
function GetTagAtCursor(wbSelect: WordBool): WideString;
Returns the tag in which the cursor is currently located in the editor. If a tag cannot be
identified, the method returns an empty string.
If wbSelect is True, the tag will be selected (highlighted) in the document.
Example:
// Displays a message box with the current tag
function Main() {
GotoNextEndTag
function GotoNextEndTag(wbSelect: WordBool): WordBool
Moves the next end tag, selecting it if
GotoNextStartTag
function GotoNextStartTag(wbSelect: WordBool): WordBool
Moves the next starting tag, selecting it if
found.
GotoPreviousEndTag
function GotoPreviousEndTag(wbSelect: WordBool): WordBool
Moves the previous end tag, selecting it if
found.
GotoPreviousStartTag
function GotoPreviousStartTag(wbSelect: WordBool): WordBool
Moves the previous starting tag, selecting it if
found.
Indent
procedure Indent()
Indents the current selection.
InsertTag
procedure InsertTag(sStartTag, sEndTag: OleVariant; wbOverwriteSelection: WordBool)
Inserts the passed tag pair at the current cursor position, overwriting the selection if
wbOverwriteSelection
end tags after this operation, and if
selection will be surrounded by the tags.
with (Application) {
MessageBox(ActiveDocument.GetTagAtCursor(false), 'Current
Tag At Cursor', 0);
}
}
is True. The cursor will be positioned between the start and
is True. Returns False if no tag found.
wbSelect
is True. Returns False if no tag
wbSelect
is True. Returns False if no tag
wbSelect
is True. Returns False if no tag
wbSelect
wbOverwriteSelection
is False, the current

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion studio 4.5

Table of Contents