Id Property (Article)

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

Description

Returns the database identifier of the article.

For new (i.e. not yet saved) articles it returns a negative value. Read-only.

Available in Ted and Fred.

Syntax

iValue = object.Id

object

Required. Object name. Returned by Ted.GetActiveArticle.

Example

This script displays the id of the article.

  If Ted.HasActiveArticle Then

    Dim objArticle = Ted.GetActiveArticle

    Dim id As Integer = objArticle.Id

    If id < 0 Then

       MsgBox("This article has no ID yet, save it first")

    Else

       MsgBox("Id of this article is " & id)

    End If

  End If

Context

Article object