LastMessage Property (Read Only)

Measurement Studio User Interface

LastMessage Property (Read Only)

Syntax

CWBinding.LastMessage

Data Type

String

Purpose

Stores the last message used in a CWBindingStatusUpdated event.

Remarks

The message describes either the last error encountered or the last step taken in connecting or updating the data.

Example

'Display the current status in the form
'[status:error] Message

'Create a reference to a CWBinding object
'on CWGraph1
Dim Binding As CWBinding
Set Binding = CWGraph1.CWBindings.Item(1)

Dim str As String
If (Binding.StatusUpdated) Then 
   str = "[" & CWBinding.Status & ":" & _
           CWBinding.LastError & "]"  & _
           CWBinding.LastMessage
   MsgBox str 
End If

See Also

CWBindingStatusUpdated

LastError