# MX\_GETVER
> [HTML Version](mx_getver.htm)
_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](string.htm.md), 28+) \[out\]
String which will receive the version formatted as "A-Shell Version #.#.###.#"
_vmajor, vminor, vedit, vpatch _ ([Num](num.htm.md)) \[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](num.htm.md)) \[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**
• [GETVER](getver_sbr.htm.md)[xs](keyword-types.htm.md) returns version of the currently running program. .
• [MX\_OSVER](mx_osver.htm.md)[xs](keyword-types.htm.md) returns the operating system version information
• [Fn'MinAshVer() in SOSLIB:\[907,10\]](https://bitbucket.org/microsabio/soslib/src/master/907010/fnminasver.bsi) provides an easy way to check that A-Shell and/or ATE are at least a specified version.
• [Fn'FileVer\$() in SOSLIB:\[907,10\]](https://bitbucket.org/microsabio/soslib/src/master/907010/fnfilever.bsi) retrieves the version of a program file on disk