Using the CSV_Include Project > CSV_Include Reference > CSV_Include Functions > CSV_Misc_IntRange

CSV_Misc_IntRange

Checks the range is valid for Integers; if not, a message box appears informing the user of the correct range.

Syntax

CSV_Misc_IntRange(LowerRange,UpperRange,OriginalValue,NewValue)

#LowerRange:

The Lower range of the necessary Range

#UpperRange:

The Upper range of the necessary Range

#Original Value:

The value to be change back too; this is used if the value is invalid or out of range.

#New Value:

The new value to change to.

Return Value

The new value, or the original value if out of range.