BindProperty Property

Measurement Studio User Interface

BindProperty Property

Syntax

CWBinding.BindProperty

Data Type

String

Purpose

Specifies the name of the property that you are binding to an external data item.

Remarks

When you are binding a property to a data item, first set the bind control or object with the SetBindObject method, and then use this property to specify the bind property on that control or object.

Example

'Create a binding that charts wave data
'from a local DataSocket Server on a graph.
Dim Binding As CWBinding

'Add new CWBinding
CWGraph1.CWBindings.Add
Set Binding = CWGraph1.CWBindings.Item(1)

'Set AccessMode to automatically read and update
Binding.AccessMode = cwdsReadAutoUpdate
'Specify the data source on the DataSocket Server
Binding.URL = "dstp://localhost/wave"

'Bind the URL to CWGraph control, YData property
Binding.SetBindObject CWGraph1
Binding.BindProperty = "YData"

'Connect to data source
Binding.Connect

See Also

SetBindObject