Version Property (Article)

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

Description

Returns the database version number of the article.

The version is increased every time the article is saved in the database.

For new (i.e. not yet saved) articles it returns always 0.

Available in Ted and Fred.

Syntax

object.Version

object

Required. Object name. Returned by Ted.GetActiveArticle.

Example

This script checks the article and displays the result.

  If Ted.HasActiveArticle Then

    Dim objArticle = Ted.GetActiveArticle

    Dim iVer As Integer = objArticle.Version

    If iVer = 0 Then

       MsgBox("This article is new and has no versions yet.")

    Else

       MsgBox("The current version of this article is " & iVer)

    End If

  End If

Context

Article object