Open topic with navigation
<viz>.requireVersion
Check whether the current version is valid
<viz>.requireVersion( |
|
ver |
mode = '<=' |
) |
|
ver
A standard Vizard version string
mode = '<='
Can be one of the following string values:
'<=' | Requires the version to be less than or equal to the current version. |
'<' | Requires the version to be less than the current version. |
'=' | Requires the version to be equal to the current version. |
'>=' | Requires the version to be greater than or equal to the current version. |
'>' | Requires the version to be greater than the current version. |
Remarks
This command is used to check whether the current version of Vizard is valid compared to a reference version. If the current version is not valid, a popup message will be displayed to the user and the script will exit.
Return Value
None
Example
import viz
#Require version 3.00.1932 or higher of Vizard
viz.requireVersion('3.00.1932')
viz.go()
.
.
.
See also