IsMinimalRevision - cCLIHandler

Checks if a Connectivity Kit complies with a minimal revision.

Type: Function

Return Data Type: Integer

Parameters: Integer iMajor Integer iMinor Integer iRelease Integer iBuild

ParameterDescription
iMajorMajor revision number
iMinorMinor revision number
iReleaseRelease revision number
iBuildBuild revision number


Return Value

Returns True (1) or False (0).


Syntax
Function IsMinimalRevision Integer iMajor Integer iMinor Integer iRelease Integer iBuild Returns Integer

Call: 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