TypeId Method

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

Description

Returns the type id of the node, or 0 if on root.

Available in Ted and in Fred.

Syntax

dim iTypeId as Integer = object.TypeId

object

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

Example

For the text element, whose type id in database is 1951, the below script displays 1951.

If Ted.HasActiveArticle Then

 Dim objA = Ted.GetActiveArticle

 Dim objN = objA.GetCurNode

 MsgBox (objN.TypeId)

End If

Context

Node object

See also

TypeContent, TypeDescription, TypeId, TypeKind, TypeLink, TypeModel, TypeName, TypeReference, TypeTextElement