Version


Section contents


Overview

Defined in

ce32base.oxh

Description

<TBS>


Construction / destruction


NewVersion - Constructor

Usage

this& = NewVersion&:(major%,minor%,build%)

Description

Creates a version object and returns a handle which allows the object to be manipulated.

Parameters
major% The major number
minor% The minor number
build% The build number
Return Value
this& An value which represents the created version object
Error Handling

If the object could not be created then an error is generated which should be trapped by an ONERR handler.

Example
  LOCAL this&

  this& = NewVersion&:(1,0,0)
  DeleteVersion:(this&) 

DeleteVersion - Destructor

Usage

DeleteVersion:(this&)

Description

Destroys the version object.

Arguments
this& A handle to a version object
Example
  LOCAL this&

  this& = NewVersion&:(1,0,0)
  DeleteVersion:(this&) 

Methods provided


VersionBuild - get build version number

Usage

build% = VersionBuild%:(this&)

Description

Get the build version number.

Arguments
this& A handle to a version object
Return value
build% The build version number

VersionMajor - get major version number

Usage

major% = VersionMajor%:(this&)

Description

Get the major version number.

Arguments
this& A handle to a version object
Return value
major% The major version number

VersionMinor - get minor version number

Usage

minor% = VersionMinor%:(this&)

Description

Get the minor version number.

Arguments
this& A handle to a version object
Return value
minor% The minor version number

VersionName - get version name

Usage

name$ = VersionName$:(this&)

Description

Get the version name.

Arguments
this& A handle to a version object
Return value
name$ The version name. The maximum length of the name is KMaxVersionName%
Error Handling

If the name$ string cannot be created then an error is generated which should be trapped by an ONERR handler.