DiscreteBase Property
Syntax
CWAxis.DiscreteBase
Data Type
Purpose
Specifies the base value for discrete axes.
Remarks
Valid values on a discrete axis are described by the equation:
ValidValue = DiscreteBase + (n * DiscreteInterval)
where n is any integer, positive or negative. The DiscreteBase and DiscreteInterval properties specify the discrete values that are valid on the axis. For example, for discrete values of integers, set DiscreteBase to 0 and DiscreteInterval to 1. For discrete values of 0.25, 0.5, and 0.75, set DiscreteBase to 0 and DiscreteInterval to 0.25.
Example
'Setup the CWSlide control to take only integer data
CWSlide1.Axis.Discrete = True
CWSlide1.Axis.DiscreteInterval = 1
CWSlide1.Axis.DiscreteBase = 1
'Setup the CWSlide control to round all data to the
'nearest 0.5
CWSlide1.Axis.Discrete = True
CWSlide1.Axis.DiscreteInterval = .5
CWSlide1.Axis.DiscreteBase = 0