SMALLVALID()
Short:
------
SMALLVALID() Uses SMALLS() lookups in a VALID condition for a GET
Returns:
--------
lValid => logical value
Syntax:
-------
SMALLVALID([bValid],expDisplayString,[cTitle],;
[expAlias],expReturn,[expStartRange,expEndRange],[bException])
Description:
------------
Uses SMALLS() in a VALID condition for a GET. See
SMALLS() for description of parameters <expDisplayString>
through [bException]
If the user selects a value from the SMALLS() lookup,
a value of True is returned, allowing the next GET to be made
active. Otherwise, a False is returned. The return value is also
determined by [bValid]
[bValid] - This is a code block that determines if
the current get is already valid. If this is passed, it is first
evaluated, and, only if the current get is NOT ALREADY VALID,
SMALLS() is called with the SMALLS() parameters given. If this
is not passed, SMALLS() is called automatically. IF this is
passed and the GET is valid, a True is returned, allowing the
next GET to be 'gotten'.
Examples:
---------
@3,0 GET V3 VALID ;
SMALLVALID({||!EMPTY(V3)},"LASTNAME",nil,5,"LASTNAME")
// This will pop up a smalls() lookup table when attempting to exit
// the get 'V3' where 'V3' is empty. A SMALLS() lookup is called, with
// smalls() parameters provided, and, if CR is pressed, the GET is fed
// or assigned the lookup value. (depends on value of <expReturn>)
// If 'V3' is already valid, a True is returned, and the next GET is made
// active. If SMALLS() is called and CR is pressed while in SMALLS(),
// a True is returned. Otherwise a False is returned.
Notes:
-------
See Smalls() for a complete parameter description.
Source:
-------
S_SMGETS.PRG
Like this:
Like Loading...
Related
Pingback: SP Get system Functions | Viva Clipper !
Pingback: SP Functions | Viva Clipper !