ComponentOne True DBInput Pro 8.0
Increment Property (Spin)

 

Reference> Spin Object> Spin Object Properties> Increment Property (Spin)

Increment Property (Spin)

The Increment property determines the amount the Value property changes when you click the spin arrow buttons or press the Up and Down arrow keys (overridden if assigned in the Key object) to increment and decrement values.

Syntax

object.Increment= integer

Read/Write at run time and design time.

Values

0 - 32767 (1 is the default)

Remarks

The up arrow, causes Value to approach the maximum limit date(9999/12/31) by the amount specified by this property. The down arrow causes Value to approach the minimum limit date (100/1/1) by the amount specified by this property. Note that the maximum and the minimum limit dates may change according to the settings specified with the ValidateMode property.

The control increments and decrements the current field in which the caret is placed in. If the caret is placed on a literal, the spin action will not take any effect. You can also set the Wrap property to determine if wrap to the beginning or the end when reaching the maximum and the minimum limit date (100/1/1 - 9999/12/31). Note that the valid range is not determined by the MaxDate and the MinDate properties.

If the Wrap property is set to False, after reaching the maximum and the minimum limit date the control does not allow any more spinning.

When incrementing or decrementing Era fields (ee), the amount of value will always change by one, regardless of the setting of the Increment property.

The Up and Down arrow keys will be overridden if assigning them to the Key object. Therefore, these keys are recommended to be used with the combined shift status.

See Also

Value Property (TDBDate)

MaxDate Property (TDBDate)

MinDate Property (TDBDate)

Wrap Property (Spin)

ValidateMode Property (TDBDate)

SpinDown Event (TDBTime)

SpinUp Event (TDBTime)

Key Object Properties

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback