[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 DBSETDRIVER()
 Return the default database driver and optionally set a new driver
------------------------------------------------------------------------------
 Syntax

     DBSETDRIVER([<cDriver>]) --> cCurrentDriver

 Arguments

     <cDriver> is an optional character value that specifies the name of
     the database driver that should be used to activate and manage new work
     areas when no driver is explicitly specified.

 Returns

     DBSETDRIVER() returns the name of the current default driver.

 Description

     DBSETDRIVER() sets the database driver to be used when activating new
     work areas without specifying a driver.  If the specified driver is not
     available to the application, the call has no effect.  DBSETDRIVER()
     returns the name of the current default driver, if any.

 Examples

     .  This example makes the "DBFNDX" driver the default driver.  If
        the driver is unavailable, a message is issued:

        DBSETDRIVER("DBFNDX")
        IF ( DBSETDRIVER() <> "DBFNDX" )
           ? "DBFNDX driver not available"
        ENDIF

 Files   Library is CLIPPER.LIB.


See Also: DBUSEAREA() RLOCK() UNLOCK USE
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson