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>ddpkchk()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
ddPkChk()
Verifies uniqueness of an expression
------------------------------------------------------------------------------
Syntax:

     ddPkChk( <nNdxOrde>, <cKeyExpr>,;
                     [<cMessage>] ) --> lSuccess

Parameters:

     <nNdxOrde> Index order on which to verify uniqueness
     <cKeyExpr> Espression to validate
     <cMessage> Optional error message in case of duplicates

Returns:

     <lSuccess> If .T., the expression is unique

Description:

     This function verifies uniqueness of the primary/unique keys, i.e.
     checks if the expression entered is not already stored in the files.
     If the result is True, the expression is not found in the file, thus
     the key not duplicated.

Example:

     IF !Inv->(ddPkChk( 1, tbPkExp( oWin ) ))
        // Loop
     END

See also:

     dfPkNew()

See Also: dfPkNew()

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