U_CHECKVERSION

Check for minimum version of a product

WSupported on Windows
USupported on Unix
VSupported on OpenVMS
NSupported in Synergy .NET
xcall U_CHECKVERSION(product, version, minvers)

product

The product name to be displayed in the error message if the comparison results in a fatal error. (a)

version

The version of the product in use. (a)

minvers

The minimum version required. (a)

U_CHECKVERSION checks version to see if it is at least as high as minvers. If not, a fatal error occurs.

The version and minvers strings are expected to be in the form v[.r][.m], where

For a two-digit value, you can use an uppercase Latin letter: A for 10, B for 11, and so forth. For example, for 10.1.1, you can use A.1.1. If you use an uppercase letter for v, r, or m, make sure it is the only character used for that value.

The following example compares the current Toolkit version (in version) with the minimum allowed version (MIN_VRSN). If version is less than MIN_VRSN, a fatal error occurs.

xcall u_version(version)
xcall u_checkversion("UI Toolkit", version, MIN_VRSN)