# Programming with Numeric Slide Controls

Use SetCtrlVal to set a numeric slide control to a particular value. Use GetCtrlVal to obtain the current value of a numeric slide control.

A numeric slide control has a data type associated with it, so you must be careful to match the value you pass to SetCtrlVal with the data type of the control. The pointer you pass to GetCtrlVal must also be compatible with the current data type of the control.

## Data Binding

Linux Data binding is not supported on Linux.

You can bind numeric slide controls to a DataSocket source. Controls can have only one DataSocket connection. You must specify whether the access mode is READ mode or WRITE mode:

- READ mode—The control gets data from the DataSocket source. In READ mode, the value of the numeric slide control is updated automatically when the value changes at the source.
- WRITE mode—The control transfers data to the DataSocket source. In WRITE mode, the value at the DataSocket source is updated automatically when the value of the numeric slide control changes.

Use DSBindCtrl DSBindCtrl to bind a numeric slide control to a DataSocket source. Use DSUnbind DSUnbind to disconnect the numeric slide control from the DataSocket source.

The data type of the control must match the data type in the DataSocket source.

You must enable the DataSocket option in the Edit Installer dialog box Drivers & Components Drivers & Components tab if your applications use data binding.