Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- SIx Driver RDD v3.00 - Reference Guide - Norton Guide http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]

  RDD_Info():

   Syntax:   RDD_Info([nArea | cRDDName])

             nArea   = Workarea number.  Returns data about driver loaded in
                       specified area.
            cRDDName = Name of the driver to return info about.

  Returns:  <array> Six element array containing the following data:

              [1] = Driver name
              [2] = Logical flag indicating whether or not driver is
                    loaded.
              [3] = Table extension
              [4] = Primary index extension
              [5] = Secondary index extension (or "")
              [6] = Memo file extension (or "")

         -or-

            <array> An empty array if no table open in specified area or if
            an invalid driver name was specified.

  Description:  This function returns an array containing information about
                a database driver.  The driver can be specified in one of
                three ways:

                 Workarea #  - Returns information about the driver loaded
                               in the specified area.  Use 0 for current
                               workarea.
                 Driver name - Returns information about the named driver.
                               Note that extension information is only
                               returned if driver has already been loaded.
                 <no param>  - Returns information about the default
                               driver.

  Example:

    #include "SIXCDX.CH"        // Forces SIXCDX to be linked in

    REQUEST SIXNSX              // Forces SIXNSX to be linked in
    REQUEST SIXNTX              // Forces SIXNTX to be linked in

    LOCAL aRDDInfo, nCnt, nRDDCnt := RDD_Count()

    FOR nCnt := 1 TO nRDDCnt
      aRDDInfo := RDD_Info( RDD_Name( nCnt ))   // Fill aRDDInfo array

      ? "RDD Name.............: " + aRDDInfo[ 1 ]
      ? "Loaded?..............: " + iif( aRDDInfo[ 2 ], "Yes", "No" )
      ? "Table File Extension.: " + aRDDInfo[ 3 ]
      ? "Index File Extension.: " + aRDDInfo[ 4 ]
      ? "Secondary Index Ext..: " + aRDDInfo[ 5 ]
      ? "Memo File Extension..: " + aRDDInfo[ 6 ]
      ?
    NEXT



See Also: RDD_Count() RDD_Name() OrdBagExt() Sx_MemoExt()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson