Name Method

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

Description

Returns the name of the object.

Syntax

strName = object.Name

object

Required. Object name. Returned by the GetObj function of the object, returned by Ted.GetActiveArticle.

Example

This script displays the name of the object.

  If Ted.HasActiveArticle Then

    Dim objArticle = Ted.GetActiveArticle

    Dim idx As Integer = objArticle.GetCurTxtIdx

    If idx >= 0 Then

      If objArticle.HasRefObj(idx) Then

        Dim objObj = objArticle.GetRefObj(idx)

         MsgBox(objObj.name)

      End If

    End If

  End If

Context

Method