key_version/2—retrieve the version from a license key

The syntax for key_version/2 is as follows:

key_version($KEY,$VERSION)

key_version/2 arguments 

Argument

Mode

Type

Description

$KEY

Input

STRING

Specifies the license key

$VERSION

Output

INTEGER

Version of key

Use the key_version/2 to retrieve the version number from license key $KEY and return it in $VERSION.

A license key is a string containing licensing information, as provided by BMC.

An application that requires a license key can support multiple versions of the license key. Each version can have different restrictions or result in a different behavior. With this primitive, the application can retrieve the version of a key and behave according to the returned version.

key_version/2 example

key_version($KEY,$VERSION);
if ( $VERSION == 1 ) then ...
Was this page helpful? Yes No Submitting... Thank you

Comments