<< Click to Display Table of Contents >> Navigation: ThinBASIC Core Language > Script structure > Pre Parsing directives > #MINVERSION |
Description
Tells the pre-parser to check thinBasic version against a passed minimal version needed by the script to be executed.
Syntax
#MINVERSION Major[.Minor[.Build[.Revision]]]
Returns
None. It produces a run-time error in case of version not correct.
Parameters
Remarks
Use this directive in order not to allow script to be executed in not compatible thinBasic versions.
For example, if your script uses one or more keywords present only starting from a specific thinBasic version, add this statement somewhere in your code.
At least Major should be specified in order to correctly check version.
Restrictions
This directive is a pre parsing directive. It means all #MINVERSION statements will be solved before starting script execution.
See also
Examples
'---All version starting from 1.0.10.2 will work
#MINVERSION 1.0.10.2
'---All version starting from 1.0.9.x will work
#MINVERSION 1.0.9