StatusUpdated Property (Read Only)

NI DataSocket

StatusUpdated Property (Read Only)

Syntax

CWDataSocket.StatusUpdated

Data Type

Boolean

Purpose

Indicates if the status has changed or an error has occurred.

Remarks

The property is set to True when the OnStatusUpdated event is generated and set to False when the StatusUpdated property is queried.

Example

'Display the current status in the form
'[status:error] Message
Dim str As String

If (CWDataSocket1.StatusUpdated) Then
   str = "[" & CWDataSocket1.Status & ":" & _
           CWDataSocket1.LastError & "]" & _
           CWDataSocket1.LastMessage
   MsgBox str
End If