Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- dBsee 4.6 - The Library - <b>dbtabchk()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
dbTabChk()
Tests a value in a table file
------------------------------------------------------------------------------
Syntax:

     dbTabChk( <cTabId>, @<cTabCode>|<bTabcode>,;
                <cTabMst> ) --> lRet

Parameters:

     <cTabId>   Table ID
     <cTabCode>|<bTabCode> Lookup field. cTabCode must be prefixed by @.
              If you use <bKeyVar> the var isn't passed by reference
     <cTabMst>  Control to be performed
     +----------------------------------------+
     | #define         | Description          |
     |-----------------+----------------------|
     | LT_NOTMANDATORY | Can be empty         |
     | LT_MANDATORY    | Not empty, same type |
     | LT_FREE         | Any value            |
     +----------------------------------------+

Returns:

     <lRet> is .T. if the test was true

Description:

     The value specified in <cTabCode> is tested with respect to the given
     table. The value must exist in the table.

Example:

     dbTabChk( "TabIva", @cCodIva, LT_MANDATORY )

See also:

     dbLook(), dbTabGet()

See Also: dbLook() dbTabGet()

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