Navigation: ABC Library Reference > StepClass > StepClass Methods >====== Init (initialize the StepClass object) ====== | |
Init( controls )
Init | Initializes the StepClass object. |
controls | An integer constant, variable, EQUATE, or expression that contains several important pieces of information for the StepClass object. |
The Init method initializes the StepClass object.
The controls parameter identifies for the StepClass object:
·the characters included in the sort sequence
·whether the key is case sensitive
·the direction of the sort (ascending or descending)
Implementation:
The Init method sets the value of the Controls property. Set the value of the Controls property by adding together the applicable EQUATEs declared in ABBROWSE.INC as follows:
ITEMIZE,PRE(ScrollSort)
AllowAlpha EQUATE(1) !include characters ABCDEFGHIJKLMNOPQRSTUVWXYZ
AllowAlt EQUATE(2) !include characters `!“£$%%^&*()''-=_+][#;~@:/.,?\|
AllowNumeric EQUATE(4) !include characters 0123456789
CaseSensitive EQUATE(8) !include characters abcdefghijklmnopqrstuvwxyz
Descending EQUATE(16) !the sort is descending
END
Example:
MyStepClass.Init(ScrollSort:AllowAlpha+ScrollSort:AllowNumeric)
See Also: Controls