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

Purpose:     Test if a field name is valid in the selected database.

Syntax:      ISFIELD( fieldname )

Arguments:   fieldname   - Character name to test if is a field in the
                           currently selected database.

Returns:     True if <fieldname> is a field in the currently selected
             database.

Description: ISFIELD() is a database function used mainly to verify a
             fieldname in the current database file.  This can be helpful
             in verifying that fields explicitly named in your application
             have not been altered, removed, or renamed in the database
             file outside the control of your application.

Notes:       If no fieldname is provided, ISFIELD() will return false and
             set the appropriate RLIBERROR()

Example:     *-- verify Name field before replacing
             IF ISFIELD("name")
                REPLACE name WITH "Richard Low"
             ELSE
                BUZZ()
                SAYINBOX( "W+/R", "Internal database error!",;
                                  "Field NAME does not exist", 10 )
             ENDIF

Source:      RL_ISFIE.PRG

See also:    ISDBF()

See Also: ISDBF()

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