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>dfnullify()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
dfNullify()
Sets a given field to NULL
------------------------------------------------------------------------------
Syntax:

     dfNullify( <cField> ) --> NIL

Parameters:

     <cField>   Field to nullfy.

Returns:

     NIL

Description:

     Sets a given field to NULL, based on its type. This operation works in
     the current area and assume that the record is locked. The following
     field types can be handled:
     +------------------------------------------------+
     |  Type  |  Description  | Null value            |
     |--------+---------------+-----------------------|
     |   C    |  Character    | CHR(177)              |
     |   D    |  Date         | "01/01/80"            |
     |   L    |  Logic        | .F.                   |
     |   N    |  Numeric      | -1                    |
     +------------------------------------------------+

Example:

     // Cli->CodCli is "00001"
     Cli->(dfNullify( "codcli" )) // Nullfies the field

See also:

     dfKeyEmpty()

See Also: dfKeyEmpty()

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