C5_DBSETDRIVER

 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



Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.