Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Advantage CA-Clipper Guide v6.11 - ax_version() http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 AX_Version()
 Returns Advantage software version information
------------------------------------------------------------------------------

 Syntax

     AX_Version( [<nType>] ) -> numeric

     <nType>  An optional numeric value from 0 to 3 indicating the type
     of version information desired.

 Returns

     Returns one of four values, depending on the value of nType:

     <nType>   Returns
     -----------------

        0      Primary version number as a string ( "5.0" )
        1      Date stamp of release as a DATE type ( "03/30/98" )
        2      Time stamp of release as a string ( "5:20a" )
        3      A string containing the following information:
               product name, dialect, version number, date stamp, and
               time stamp.  (For example: "Advantage RDD for CA-Clipper 5.2,
               CDX/IDX, 5.0, 03/30/98, 5:20a")

     If no value is specified, the primary version number is returned.

 Description

     Reports the Advantage RDD version number and sub-version information.

     AX_Version( 1 ) returns a date value (type "D") while all other
     parameters return a character string (type "C").  If you intend to use
     the return value of AX_Version( 1 ) as a string, convert it using
     CA-Clipper's DTOC() or DTOS() function.

     AX_Version() will not return any information until the application
     has established a connection to the Advantage Database Server.  A
     connection is established when the first table is opened.

 Example

     USE test VIA "DBFNTXAX"

     // Print out Advantage version information
     ? "Version: " + AX_Version( 3 )

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