version 6.0.1
OC Check configuration Integer
| Parameter | Type | Description | ||||
| This command does not require any parameters | ||||||
| Function result | Integer | Error 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:
| Results | Description |
| 1 | No error, all the tests done are successful. Mac OS and Windows. |
| - 1 | The library was not found. Mac OS. |
| - 2 | Not enough memory to load the library. Mac OS. |
| - 3 | The 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. | |
| -101 | The DLL could not be found. Windows. |
| -102 | The 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