Reviewed April 2024; rewritten September 2017
xcall MIAMEX, MX_GETVER, verstr$ {,vmajor, vminor, vedit, vpatch {,ate'vmajor, ate'vminor, ate'vedit, ate'vpatch}}
MX_GETVER (MIAMEX 12) returns the current A-Shell version, as well as—optionally and if applicable—the ATE version. .
Parameters
verstr$ (String, 28+) [out]
String which will receive the version formatted as "A-Shell Version #.#.###.#"
vmajor, vminor, vedit, vpatch (Num) [out]
These variables return the individual parts of the A-Shell version, broken out from verstr$ for convenience. Note that vmajor, vminor and vpatch can be mapped as B1, while vedit needs to be at least B2.
ate'vmajor, ate'vminor, ate'vedit, ate'vpatch (Num) [out]
These variables return the individual parts of the ATE client version (if applicable). As with the parts of the A-Shell version, the ate'vmajor, ate'vminor and ate'vpatch can be mapped as B,1, while ate'vedit needs to be at least B2. If there no ATE client, these parameters will all return zero.
Example
Sample return values:
VERSTR$ : "A-Shell Version 6.4.1544.2"
VMAJOR : 6
VMINOR : 4
VEDIT : 1544
VPATCH : 2
See Also
• | Fn'MinAshVer() in SOSLIB:[907,10] provides an easy way to check that A-Shell and/or ATE are at least a specified version. |
• | Fn'FileVer$() in SOSLIB:[907,10] retrieves the version of a program file on disk |