GLX Application Framework > GLX Application Framework > Application Version Information

Application Version Information

The GLX Framework keeps track of your application's version information. This is used by the framework when auto updating your application over the internet and can be used by you to report version information in your about box, etc.

Version Info

A GLX Application keeps track of two types of version information.

The first (1) is your application's version. This is comprised of the Major, Minor, Revision, Build and Stage properties.

The second (2) is the version of the Revolution engine that your application is currently using. This is done so that a new engine does not have to be downloaded during auto update unless need be.

You can access version information in your scripts by calling glxapp_getProp() with one of the following parameters:

* version array: returns an array with "major", "minor", "revision", "build" and "stage" keys.
* short version: returns a string containing at least major and minor version (x.x) and the revision version if > 0 (x.x.x).
* version: returns the short version with the stage and build information included if stage != "release". For example 1.0.1 d1 would be returned if the stage was development and the build number was 1. Note that only the first character of each word of the stage is returned.
* long version: Returns all version fields with no spaces. Note that only the first character of each word of the stage is returned.

Changing Version Info

Media_1204951345129_display

As you work on your application you can update the version fields to reflect the current state of your application. These values can then be reported in the application about box and other areas as appropriate.

Setting the Engine Version

Media_1204951378245_display

The "Set to Current" button is for convenience. It will set the engine version to the version of the engine the IDE is currently running on. You can access the engine version number by calling glxapp_getProp("engine version").

Comments (0)

Add your comment




E-Mail me when someone replies to this comment

Are you human?