GetTxt Method

Build 1501 on 14/Nov/2017  This topic last edited on: 22/Mar/2016, at 17:08

Description

Returns a text object, belonging to the node.

Available in Ted and in Fred.

Syntax

dim objT = object.GetTxt

object

Required. Object name. Returned by the GetRootNode, GetCurNode, GetTxtNode, GetParent, GetChild functions of the object, returned by Ted.GetActiveArticle.

Example

This script returns the name of the text, belonging to the node.

If Ted.HasActiveArticle Then

dim objA = Ted.GetActiveArticle

dim objN = objA.GetCurNode

If objN.HasTxt Then

  dim objT = objN.GetTxt

   msgbox (objT.Name)

End If

End If

Context

Node object

See also

HasTxt

TedTxt Object