C5_RDDSETDEFAULT

 RDDSETDEFAULT()
 Set or return the default RDD for the application
------------------------------------------------------------------------------
 Syntax

     RDDSETDEFAULT([<cNewDefaultRDD>])
        --> cPreviousDefaultRDD

 Arguments

     <cNewDefaultRDD> is a character string, the name of the RDD that is
     to be made the new default RDD in the application.

 Returns

     RDDSETDEFAULT() returns a character string, cPreviousDefaultRDD, the
     name of the previous default driver.  The default driver is the driver
     that Clipper uses if you do not explicitly specify an RDD with the
     VIA clause of the USE command.

 Description

     RDDSETDEFAULT() is an RDD function that sets or returns the name of the
     previous default RDD driver and, optionally, sets the current driver to
     the new RDD driver specified by cNewDefaultRDD.  If <cNewDefaultDriver>
     is not specified, the current default driver name is returned and
     continues to be the current default driver.

     This function replaces the DBSETDRIVER() function.

 Examples

     // If the default driver is not DBFNTX, make it the default

     IF ( RDDSETDEFAULT() != "DBFNTX" )
        cOldRdd := RDDSETDEFAULT( "DBFNTX" )
     ENDIF

 

One response to “C5_RDDSETDEFAULT

  1. Pingback: C5DG-3 RDD Reference | Viva Clipper !

Leave a comment

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