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_getservertype() http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 AX_GetServerType()
 Returns the Advantage Database Server type of the current connection
------------------------------------------------------------------------------

Syntax

     AX_GetServerType() -> numeric

Returns
     Returns a numeric value indicating the Advantage Database Server type
     for the current connection:
        ADS_MGMT_NETWARE4_OR_OLDER_SERVER (1)
        ADS_MGMT_NT_SERVER                (2)
        ADS_MGMT_WIN9X_SERVER             (4)
        ADS_MGMT_NETWARE5_OR_NEWER_SERVER (5)
        ADS_MGMT_LINUX_SERVER             (6)
     If an error occurred, then returns 0. If an error occurred, AX_Error()
     will return information on why the function failed.

Description

     AX_GetServerType() returns the Advantage Database Server type for the
     current connection.  If connected to the Advantage Database Server for
     NetWare, and the NetWare OS is version 4.x or older,
     ADS_MGMT_NETWARE_SERVER (1) is returned. If connected to the
     Advantage Database Server for Windows NT/2000, ADS_MGMT_NT_SERVER (2)
     is returned. If connected to the Advantage Database Server for Windows
     95/98/ME, ADS_MGMT_WIN9X_SERVER (4) is returned. If connected to the
     Advantage Database Server for NetWare, and the NetWare OS is version
     5.0 or newer, ADS_MGMT_NETWARE5_OR_NEWER_SERVER (5) is returned. If
     connected to the Advantage Database Server for Linux,
     ADS_MGMT_LINUX_SERVER (6) is returned.

Example

     // Connect to the Advantage Database Server.  Assume x: is mapped to
     // a NetWare 4.2 file server.
     USE x:dummy.dbf VIA "DBFCDXAX"

     ? nServerType := AX_GetServerType()  // Will return 1 for NetWare server

     // Connect to the Advantage Database Server.  Assume y: is mapped to
     // a Windows NT server.
     USE y:another.dbf VIA "DBFCDXAX" NEW

     ? nServerType := AX_GetServerType()  // Will return 2 for NT server



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