AX_SetServerType()

Advantage Visual Objects RDD

  Previous topic Next topic  

Determines which type of Advantage server the client application can use

Syntax

AX_SetServerType( lUseRemoteServer, lUseInternetServer, lUseLocalServer )

 

lUseRemoteServer [.T.|.F.]

A logical value that determines if the Advantage Database Server should be used.

lUseInternetServer [.T.|.F.]

A logical value that determines if the Internet server should be used.

lUseLocalServer [.T.|.F.]

A logical value that determines if the Advantage Local Server should be used.

Description

AX_SetServerType determines which types of Advantage servers the client application can use. By default, all three Advantage server types are enabled. The following precedence (by default) is followed when attempting to connect: highest priority is given to the Advantage Database Server, second priority to the Advantage Internet Server, and lowest priority to the Advantage Local Server. The first parameter enables connections to the Advantage Database Server. The second parameter enables connections to the Advantage Internet Server functionality, and the third parameter enables connections to the Advantage Local Server. If multiple server types are enabled, then the connection type is determined by the precedence mentioned above.

Example

AX_SetServerType( .T., .T., .T. ) // use all server types

USE test VIA "DBFNTXAX"