Retentive

<< Click to Display Table of Contents >>

 

Retentive

Boolean This property determines whether the Internal Tag's value must be stored automatically or not, if the active Domain is stopped. This guarantees that the Tag's value is synchronized with the standby server. Thus, when the server starts running, the Tag's value is the same as the server that was stopped. Otherwise, the Tag's value is adjusted to its initial value whenever the Domain is executed or the active server switches. This property cannot be changed while this object is active. Example:

Sub CommandButton1_Click()
  Dim status
  status = Application.GetObject("Data.InternalTag1").Retentive
  MsgBox status
  Select Case status
    Case True
      MsgBox "Internal Tag's value is _
        stored automatically."
    Case False
      MsgBox "Internal Tag's value is adjusted to its initial _
        value whenever the Domain is executed or _
        when the active server switches."
  End Select
End Sub

 

NOTE

This property is only valid for Internal Tags contained on a Server. Internal Tags contained on a Viewer cannot be retentive.

Was this page useful?