CWDataSocket
CWDataSocket is a component that can connect to various data sources for reading data or data targets for writing data. Sources and targets may be local (on the current machine) or on other machines in the office or over the Internet. CWDataSocket holds stores data in CWData objects, which you can access with the CWDataSocket.Data property.
Properties
AccessMode | Specifies the type of read or write connection the DataSocket makes when connecting to the data source or target. |
ActualURL | Specifies the actual URL of the current source or target to which DataSocket is connected. |
AutoConnect | Indicates if the DataSocket connects to a data item as soon as the program is run. |
Data | Specifies the current value and attributes that the CWDataSocket has received from the data source or that have been set locally. |
DataUpdated | Indicates if values or attributes on the CWDataSocket have been set since they were last read. |
LastError | Specifies the last error code used in an OnStatusUpdated event. |
LastMessage | Specifies the last message used in an OnStatusUpdated event. |
Status | Specifies the current status of the data connection. |
StatusUpdated | Indicates if the status has changed or an error has occurred. |
URL | Specifies the location expressed as a URL of the data source or target to which the CWDataSocket is connecting. |
Methods
AboutBox | Displays the About Box for the control. |
Connect | Connects the CWDataSocket to a data source or target. |
ConnectTo | Connects the CWDataSocket to a data source or target. |
Disconnect | Disconnects the CWDataSocket from the data item to which it is currently connected. |
SelectURL | Enables interactive browsing and selection of data items, on DataSocket, OPC servers, Fieldpoint devices, Lookout objects, and of files so that users can easily create data URLs, rather than constructing the URLs themselves, or it displays a simple text box in which users can enter HTTP and FTP URLs. |
Update | Causes the CWDataSocket to read from a data source or write to a data target. |
Events
See Also
CWData