toString
converts an
InstallVersioninitobject to a string.Method of
Syntax
String version = InstallVersion.toString ( initObj );Parameters
The toString method has the following parameters:
initObj
initObjis anInstallVersionobject whoseinitmethod has been called.VersionThe 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 anInstallVersionobject in order to compare it with other versions, you can calltoString()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();
| Netscape Communications devedge.netscape.com |