2 constant customization, Constant customization -37 – Campbell Scientific LoggerNet Datalogger Support Software User Manual
Page 255

Section 7. Creating and Editing Datalogger Programs
7.3.3.9.2 Constant Customization
The Constant Customization feature allows you to define values for one or
more constants in a program prior to performing a conditional compile
(
Compile | Conditional Compile and Save menu item). The constants can be
set up with an edit box, a spin box field for selecting/entering a value, or with a
list box. A step increase/decrease can be defined for the spin box, as well as
maximum and minimum values.
To set up Constant Customization, place the cursor on a blank line within the
CRBasic Editor and choose
Tools | Set Up Constant Customization Section.
This will insert two comments into the program:
'Start of Constants Customization Section
'End of Constants Customization Section
Within these two comments, define the constants. Following each constant, use
the keywords noted below formatted as a comment, to set up edit boxes, spin
boxes, or list boxes for the constant values. The fields are edit boxes by default.
If a maximum/minimum are defined for a constant, the field will be a spin box.
If a discrete list is defined for the constant, the field will be a list box.
Constant Name=(value)
Sets a default value for a constant
Min=(value)
Sets a minimum value for a spin box control
Max=(value)
Sets a maximum value for a spin box control
Inc=(value)
The number of steps for a value each time the up
or down control on the spin box is selected
Value=(value)
Defines a pick list value
7-37