IsMinimalRevision - cCLIHandler
Checks if a Connectivity Kit complies with a minimal revision.
Type: Function
Return Data Type: Integer
Parameters
| Parameter | Type | Description |
|---|---|---|
| iMajor | Integer | Major revision number |
| iMinor | Integer | Minor revision number |
| iRelease | Integer | Release revision number |
| iBuild | Integer | Build revision number |
Syntax
Function IsMinimalRevision Integer iMajor Integer iMinor Integer iRelease Integer iBuild Returns Integer
Call Example
Get IsMinimalRevision iMajor iMinor iRelease iBuild to IntegerVariable
Description
Checks if a Connectivity Kit complies with a minimal revision.
Sample
You can also check the current Connectivity Kit revision and act upon that information. If, for example, certain functionality only works for version 3.0.0.48 or higher of the MS SQL Connectivity Kit, one could program:
Procedure DoVersionDependentThing
Handle hoCLIHandler
Get Create U_cCLIHandler To hoCLIHandler
Set psDriverID Of hoCLIHandler To "MSSQLDRV"
If (IsMinimalRevision(hoCLIHandler, 3, 0, 0, 48)) ;
Send DoMyThing
Else ;
Send Stop_Box "Function not supported by this CK"
End_Procedure // DoVersionDependentThing
Return Value
Returns True (1) or False (0).