User Tools

Site Tools


init_initialize_the_stepclass_object_.htm
Navigation:  ABC Library Reference > StepClass > StepClass Methods >====== Init (initialize the StepClass object) C6H0009.jpg ====== Previous pageReturn to chapter overviewNext page

Init( controls )

blk2blue.jpg

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

init_initialize_the_stepclass_object_.htm.txt · Last modified: 2021/04/15 15:57 by 127.0.0.1