Documentation Center

PslHistoryItem.State

Returns a status bit of the history item.

Syntax

Expression.State (Name as Variant) as Boolean

Expression Object of type PslHistoryItem

Name Name of the status value. The following values are possible:

pslHistoryTextChanged (Value = 1): The text of the translation string has been changed

pslHistoryStateChanged (Value = 2): A status bit (translated, for review...) has been changed

pslHistoryCoordChanged (Value = 4): The coordinates of a dialog control have been changed

pslHistoryCommentChanged (Value = 8): The translation comment has been changed

pslHistoryPropertiesChanged (Value = 32): The custom properties have been changed

pslHistoryFromCreate (Value = 4096): This history item marks the creation of the string

pslHistoryFromUpdate (Value = 8192): This history item is from an update of the string list

pslHistoryFromAlign (Value = 16384): This history item is from an alignment operation

pslHistoryFromLeverage (Value = 32768): This history item is from a leverage operation

pslHistoryFromImport (Value = 256): This history item is from an import operation

pslHistoryFromEdit (Value = 512): This history item is from editing the string (or has been changed from a macro)

Example

Sub HandleTransString(t As PslTransString)
  Dim item As PslHistoryItem
  For Each item In t.History
    If item.State(pslHistoryTextChanged) Then
      PSL.Output "At " & CStr(item.Date) & " " & item.UserName _
        & " changed the text to """ & item.Text & """"
    End If
  Next item
End Sub