SomGetVersionNumbers

This method gets the major and minor version numbers of a class. Not generally overridden.

For backward compatibility, this method does not take an Environment parameter.


 * Original Class : SOMClass

Syntax
void somGetVersionNumbers (SOMClass receiver, long majorVersion, long minorVersion)

Parameters

 * receiver (SOMClass) : A pointer to a class object.


 * majorVersion (long) : A pointer where the major version number is to be stored.


 * minorVersion (long) : A pointer where the minor version number is to be stored.

Return Code
rc (void)

Remarks
This method returns, via its output parameters, the major and minor version numbers of the class specified by receiver. The class object must have already been created (because the class object is the receiver of the method).

Example Code

 * 1) include 

main {

long major, minor; SOMClass myClass;

somEnvironmentNew; myClass = _somFindClass(SOMClassMgrObject,                      somIdFromString("Animal"), 0, 0); _somGetVersionNumbers(myClass, &major, &minor); somPrintf("The version numbers are %i and %i.\n", major, minor); } 

Methods

 * somCheckVersion