RDD

DbSetDriver()

Return or set the default database driver

Syntax

Signature
DbSetDriver( [cDriver] ) --> cCurrentDriver

Arguments

cDriver

Optional new default driver name.

Return value

The current driver before any new setting is applied.

Description

DbSetDriver() reads the default RDD name and can replace it when cDriver is supplied. The default is used by database operations that omit a driver.

Notes

The named driver must be registered.

Example

DbSetDriver.prg
PROCEDURE Main()

   QOut( "Driver: " + DbSetDriver() )

RETURN

Output

See also