compareTo()

Compares the current version to another version or compares the current version to a character string.

Syntax

int compareTo(CxVersion & other);
int compareTo(char * verString);

Parameters

other [in]
Is a version object.

verString [in]
Is a character string that specifies a version.

Return values

Returns 0 if the versions match, or an integer that specifies the difference between the first of the following versions that do not match: major versions, minor versions, or point versions.

Notes

You can use the compareTo() method to determine whether a business object or business object definition has a certain version.

Examples

compareTo(newVersion);

See also

See also the descriptions of the compareMajor(), compareMinor(), and compareTo() methods.

Copyright IBM Corp. 1997, 2004