SetBindObject Method

Measurement Studio User Interface

SetBindObject Method

Syntax

CWBinding.SetBindObject pDisp

Purpose

Object whose property will bind to a data source or target. This object might be either a control or one of the objects on that control.

Parameters

pDisp As Object

Measurement Studio control or one of the objects on that control.

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

BindProperty