Refresh Method (Article)

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

Description

Reloads the article from the database.

Available in Ted and Fred.

Syntax

object.Refresh

object

Required. Object name. Returned by Ted.GetActiveArticle.

Return value

The function returns 1013 (ECANCELLED) if the version of the article in the database is the same that the already loaded one and so nothing has changed.

Remarks

The Refresh method won't reload the article geometry. There may be cases when article geometry is changed in Fred. Use RefreshGeometry for that purpose.

When you check-out the article, it is refreshed at the same time.

Example

This script refreshes the article and displays the result.

  If Ted.HasActiveArticle Then

    Dim objArticle = Ted.GetActiveArticle

    Dim iError As Integer = objArticle.Refresh

    If iError = 1013 Then

       MsgBox("This article is up-to-date.")

    Else

       MsgBox("The article was refreshed.")

    End If

  End If

Context

Article object

See also

RefreshGeometry