Status Property

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

Description

Returns the status of the text:

0        normal text opened in read/write mode - ie. it can be checked-out and modified

1        locked text - linked to a locked layer

2        normal text opened in read-only mode - ie. it cannot be checked-out nor modified

3        old version

4        open by another user

5        carbon copy

6        spiked text        

Available in Ted and in Fred.

Syntax

object.Status

object

Required. Object name. Returned by Ted.GetActiveTxt, objNode.GetTxt or objArticle.GetTxt(nIdx).

Example

This script displays the status of the text.

If Ted.HasActiveTxt Then

 dim objT = Ted.GetActiveTxt        

 dim iStat = objT.Status

 Select Case istat

         Case 0: MsgBox ("Normal, read-write")

         Case 2: MsgBox ("Normal, read-only")

         Case 6: MsgBox ("Spiked")

 End Select

End If

Context

Text object