Chapter Contents |
Previous |
Next |
Slider: _getInc |
Syntax | |
Example |
Syntax |
CALL NOTIFY (slider-name, '_getInc', increment); |
Argument | Type | Description |
---|---|---|
increment |
N | returns the size of the slider's intervals |
Example |
The following example uses a slider to obtain data points between -2.20 and +2.20 in increments of 0.10. Pressing the
Zoom
button halves the current increment value, and the
UnZoom
button doubles the increment value.
INIT: call notify('slider1','_set_min_',-2.20); call notify('slider1','_set_max_',2.20); call notify('slider1','_set_inc_',0.10); slider1 = 0; return; ZOOM: /* halve the current increment */ call notify('slider1','_get_inc_',inc); call notify('slider1','_set_inc_',inc/2); return; UNZOOM: /* double the current increment */ call notify('slider1','_get_inc_',inc); call notify('slider1','_set_inc_',inc*2); return; MAIN: /* The numeric text entry field named SVALUE */ /* shows the numeric value of the slider. */ svalue = slider1; return;
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.