Using the CSV_Include Project > CSV_Include Reference > CSV_Include Functions > CSV_Misc_CheckNumPadValue

CSV_Misc_CheckNumPadValue

Uses the MultiMonitor Numpad to get a value, then checks the value's range and returns the new value, or the old if range is incorrect.

Syntax

CSV_Misc_CheckNumPadValue(sDESC, rValue, rUpLimit, rLowLimit)

#sDESC:

The description to appear in the form numpad title (as a string)

#rValue:

The original value to be changed (as a real or int)

#rUpLimit:

The Upper limit that the original value can be changed to (as a real or int)

#rLowLimit:

The Lower limit that the original value can be changed to (as a real or int)

Return Value

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

Example

Tag = CSV_Misc_CheckNumPadValue("change Value", Tag, 190, 10)
! This will means that Tag can only have values of 10 - 190 written to it via the formNumPad.