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