Scripting > UNICOM Intelligence Function Library > Miscellaneous functions > EngineVersion
 
EngineVersion
Returns part or all of the engine's version number.
Syntax
EngineVersion([Val [, Number]])
Parameters
Val
Type: Long
Optional. Which parts of the version number to return, according to the list of options below. Treated as 0 if omitted or not a valid option.
Number
Type: Boolean
Optional. If True, a number is returned. If Number is omitted or False, a string is returned.
(return)
Type: None
Part or all of the engine's version number.
Remarks
If Number is True, a number is returned only when Val is set to 1, 2, 3 or 4. In all other cases, a string is returned. If the current data value is NULL, Val is 0.
Possible values for Val
0
The whole version number as a string in the form "major.minor.revision.build".
1
The Major version number.
2
The Minor version number.
3
The Revision number.
4
The Build number.
5
The Major and Minor version numbers as a string in the form "major.minor".
6
The Major, Minor and Revision numbers as a string in the form "major.minor.revision".
Example
This example sets a variable to the Major and Minor version numbers of the mrScriptBasic engine:
Dim MyVariable
MyVariable = EngineVersion(5) ' Returns 1.4 (for example)
See also
Miscellaneous functions