GetATEasyVersion Procedure |
Version 5 |
Returns ATEasy version: Major (Hi byte) and Minor (Lo byte) version number in the High Word, and Build Number (Hi byte) and Revision Number (Lo byte) in the Low Word.
[ dwValue = ] GetATEasyVersion ()
The GetATEasyVersion procedure syntax has the following parts:
|
Name |
Type |
Description |
|
dwValue |
DWord |
Major (Hi byte) and Minor (Lo byte) version number in the High Word and Build Number (Hi byte) and Revision Number (Lo byte) in the Low Word. |
Here we have the four information bytes:
|
Words |
Bytes |
Description |
Example |
|
High |
Hi |
Major version number |
5 |
|
Low |
Minor version number |
0 or 1 |
|
|
Low |
Hi |
Build Number |
120 |
|
Low |
Revision Number |
0 |
The following statement returns ATEasy version string in Hex number:
str(GetATEasyVersion(), 16)
returns
6008506
which translates to "6.0.133f "; that is ATEasy version 6.0 Build 133f.
where 133 is 0x85 and f is the 6th alpha character.
print str(GetATEasyVersion(), 16) ! returns 6008506 - version 6.0 Build 133f
print Using "X"; HiWord(GetATEasyVersion()) ! returns 600 - version 6.0
print HiByte(HiWord(GetATEasyVersion())) ! returns 6 - major version number
print LoByte(HiWord(GetATEasyVersion())) ! returns 0 - minor version number
print Using "X"; LoWord(GetATEasyVersion()) ! returns 8506
print HiByte(LoWord(GetATEasyVersion())) ! returns 133 - build number
print LoByte(LOWord(GetATEasyVersion())) ! returns 6 - revision number