Description
Returns a node object corresponding to the specified text.
Available in Ted and Fred.
Syntax
dim objNode = object.GetTxtNode (nIdx) |
object
Required. Object name. Returned by Ted.GetActiveArticle.
nIdx
Index of the text. 0 = first text in the article; NTxts-1 = last text in the article.
If nIdx is outside this range a run-time error is raised. To get the idx of the current element, use GetCurTxtIdx.
Example
This script returns the node object of the first node.
If Ted.HasActiveArticle Then
Dim objArticle = Ted.GetActiveArticle
dim objNode = objArticle.GetTxtNode (0)
End If
Context
Article object
See also
GetTxt, GetRootNode and GetCurNode, GetParent