Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Artful Two for Clipper 5.0 - Norton Guide http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]

Syntax

CHECKRANGE( msg_str, memvar, pic_str, min, max )

Purpose

Force a string, date or numeric input within a range.

Arguments

     msg_str -- if passed, the prompt to display, otherwise it is
                    constructed.

     memvar -- variable used to generate blanks

     pict_str -- if passed, the picture string to use, otherwise it is
                     constructed.

     min -- the minimum permissible value

     max -- the maximum permissible value

Setup

memvar, min and max must all resolve to the same data type.

Example

     LOCAL mnum := 0
     mnum = CHECKRANGE( .F., mNum, .F., 1, 100 )

Returns

The new value of memvar.

Side Effects

None.

Artful Calls

ASK_FOR

Source File

AA_RANGE.PRG

Notes

In Artful v1.xx this function was called RANGECHECK. CLIPPER 5.0 now has a
function of that name, so we have renamed ours.

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson