Rewritten September 2017
xcall MIAMEX, MX_GETVER, verstr$ {,vmajor, vminor, vedit, vpatch {,ate'vmajor, ate'vminor, ate'vedit, ate'vpatch}}
MX_GETVER 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 B,1, while vedit needs to be at least B,2.
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 B,2. 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
• GETVER.SBR returns version of the currently running program. .
• MX_OSVER.SBR returns the operating system version information
• 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