toString

Summary

converts an InstallVersion init object to a string.

Method of

InstallVersion object

Syntax

String version = InstallVersion.toString ( initObj );

Parameters

The toString method has the following parameter:

initObj
initObj is an InstallVersion object whose init method has been called.

Returns

The major, minor, revision, and build numbers represented as a single string.

The init() function can input the version number as a single string or as a series of parameters representing the version numbers of the installation. To get the version number out of an InstallVersion object in order to compare it with other versions, you can call toString() and get back the version as a string in the format "maj.min.rev.bld."

Example

var vi = new InstallVersion();
vi.init("999.888.777.666"); //random string
viString = vi.toString();