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 v5.5 - 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_NETWARE_SERVER (1) or
     ADS_MGMT_NT_SERVER (2).  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, ADS_MGMT_NETWARE_SERVER (1) is returned.  If connected to the
     Advantage Database Server for Windows NT, ADS_MGMT_NT_SERVER (2) is
     returned.

Example

     // Connect to the Advantage Database Server.  Assume x: is mapped to
     // a NetWare 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