$SirVer: Difference between revisions
m (1 revision) |
m (1 revision) |
||
Line 16: | Line 16: | ||
==Syntax== | ==Syntax== | ||
<p class="syntax"><section begin="syntax" /> %VER = $SirVer(product) | <p class="syntax"><section begin="syntax" />%VER = $SirVer(product) | ||
<section end="syntax" /></p> | <section end="syntax" /></p> | ||
<p class="caption">$SirVer Function | <p class="caption">$SirVer Function |
Revision as of 20:32, 24 October 2012
Current version number of Sirius product
Most Sirius $functions have been deprecated in favor of Object Oriented methods. There is no OO equivalent for the $SirVer function, but you can get the same information from the Sirius command.
This function returns the current version number of a particular Sirius product.
The $SirVer function accepts one argument and returns a numeric result that is the current version number of the requested product.
The argument is a string corresponding to one of the following products:
- SIRMODS: Sirius Mods
- FUNLOAD: Fast/Unload (accessed via the Fast/Unload User Language Interface)
Syntax
<section begin="syntax" />%VER = $SirVer(product) <section end="syntax" />
This function can be used to ensure that you are running the correct version of the Sirius Mods or of Fast/Unload. For example, the program
IF $SirVer < 603 THEN PRINT 'OBSOLETE SIRIUS FUNCTIONS' STOP END IF
would stop if the Sirius Mods were older than release 6.03.
The default product is SIRMODS, that is, if the argument is missing or is the null string, the version number of the Sirius Mods is returned. If the argument is invalid, 0 is returned. If the argument is FUNLOAD, and the Fast/Unload User Language Interface is not available, 0 is returned.