Description
Return the text object of the nIdx text in the article.
Available in Ted and Fred.
Syntax
dim objT = object.GetTxt (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 name of the first text.
If Ted.HasActiveArticle Then
Dim objA = Ted.GetActiveArticle
Dim objT = objA.GetTxt(1)
msgbox (objT.Name)
End If
Context
Article object
See also