Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- ClipOn 3.0 Reference - c_readempty() http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 C_READEMPTY()

 DESCRIPTION

 C_READEMPTY() determines whether the current GET variable contains
 data or is empty.  C_READEMPTY() can be used inside of a valid
 function when the GET variable is not explicitly named, thus
 allowing the equivalent of the expression &READVAR(), which is not
 valid in Clipper.

 SYNTAX

 C_READEMPTY()

 PARAMETERS

 There are no parameters.

 RETURNS

 C_READEMPTY() returns true (.T.) if the current GET variable is
 empty, or false (.F.) if it contains data.

 EXAMPLES

 m1 = space(10)         && Declare various data types
 m2 = date()
 m3 = 0

 && Do GET/READ calling chk_var() function for each GET variable
 @ 1,1 get m1 picture "@!" valid chk_var()
 @ 2,1 get m2 valid chk_var()
 @ 3,1 get m3 picture "999.99" valid chk_var()
 read

 *--------------------*
 FUNCTION chk_var
 return iif(c_readempty(), .f., .t.)    && Do not allow an exit from
                                        && the get, if it is empty.


See Also: C_GETVAR()

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