Documentation Center

PslHistoryItem.UserName

Returns the name of the user who caused this history item.

Syntax

Expression.UserName as String

Expression Object of type PslHistoryItem

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