4D v14

On Server Close Connection Database Method

Home

 
4D v14
On Server Close Connection Database Method

On Server Close Connection Database Method 


 

$1, $2, $3 -> On Server Close Connection Database Method 
Parameter Type   Description
$1  Longint in User ID number used internally by 4D Server to identify users
$2  Longint in Connection ID number used internally by 4D Server to identify a connection
$3  Longint in Obsolete: Always returns 0 but must be declared

The On Server Close Connection Database Method is called once on the Server machine each time a 4D Client process ends.

As for the On Server Open Connection database method, 4D Server passes three Long Integer parameters to the On Server Close Connection Database Method. On the other hand, no result is expected by 4D Server.

The method must therefore be explicitly declared with three Long Integer parameters:

 C_LONGINT($1;$2;$3)

This table details the information provided by the three parameters passed to the database method:

ParameterDescription
$1User ID number used internally by 4D Server to identify users
$2Connection ID number used internally by 4D Server to identify a connection
$3Obsolete: Always returns 0 but must be declared

The On Server Close Connection Database Method is the exact counterpoint to the On Server Open Connection database method. For more information and a description of the 4D Client processes, see the description of this database method.

Example  

 
PROPERTIES 

Product: 4D
Theme: 4D Server Database Methods

 
HISTORY 

 
SEE ALSO 

On Server Open Connection Database Method

 
ARTICLE USAGE

4D Server Reference ( 4D v13)
4D Server Reference ( 4D v14 R2)
4D Server Reference ( 4D v14)
4D Server Reference ( 4D v14 R3)
4D Server Reference ( 4D Server v14 R4)

Inherited from : On Server Close Connection Database Method ( 4D Server v12)