OC Check configuration

4D - Documentation   Français   English   German   4D ODBC, Command Theme List   4D ODBC, Command Alphabetical List   Back   Previous   Next

version 6.0.1


OC Check configuration Integer

ParameterTypeDescription
This command does not require any parameters
Function resultIntegerError code

Description

OC Check configuration allows you to check the client configuration by command and to better understand what is wrong when the plug-in does not work properly.

Here is the list of results that the function may return:

ResultsDescription
1No error, all the tests done are successful. Mac OS and Windows.
- 1The library was not found. Mac OS.
- 2Not enough memory to load the library. Mac OS.
- 3The version of the library that was found is not supported in this version of 4D ODBC
or the library has not been loaded. Mac OS.
-101The DLL could not be found. Windows.
-102The DLL could not be loaded. Windows.

Example

This example should be placed in the On startup Database Method:

   $check:=OC Check configuration
   Case of 
      :($check=1)
         <>ServerAvailable:=True
      :($check=-1)   ` API not present
         <>ServerAvailable:=False
      Else
         ALERT (" The ODBC API is partially missing or incorrect")
         <>ServerAvailable:=False
   End case
   If (<>ServerAvailable)
      DO_Synchro ([Customers])
   End if

4D - Documentation   Français   English   German   4D ODBC, Command Theme List   4D ODBC, Command Alphabetical List   Back   Previous   Next