$SirVer: Difference between revisions
Jump to navigation
Jump to search
(Automatically generated page update) |
No edit summary |
||
Line 12: | Line 12: | ||
<ul> | <ul> | ||
<li>SIRMODS: <var class="product">[[Sirius Mods]]</var> | <li>SIRMODS: <var class="product">[[Sirius Mods]]</var> | ||
<li>FUNLOAD: <var class="product">[[Fast/Unload]]</var> (accessed via the | <li>FUNLOAD: <var class="product">[[Fast/Unload]]</var> (accessed via the <i>[[Fast/Unload User Language Interface]]</i>) | ||
</ul> | </ul> | ||
Line 24: | Line 24: | ||
==Usage notes== | ==Usage notes== | ||
<ul> | <ul> | ||
<li>This function can be used to ensure that you are running the correct version of the <var class="product">Sirius Mods</var> or of | <li>This function can be used to ensure that you are running the correct version of the <var class="product">Sirius Mods</var> or of <i>[[Fast/Unload]]</i>. For example, the program | ||
<p class="code">IF $SirVer < 603 THEN | <p class="code">IF $SirVer < 603 THEN | ||
Line 34: | Line 34: | ||
would stop if the <var class="product">Sirius Mods</var> were older than release 6.03. | would stop if the <var class="product">Sirius Mods</var> were older than release 6.03. | ||
<li>The default product is SIRMODS, that is, if the argument is missing or is the null string, the version number of the <var class="product">Sirius Mods</var> is returned. If the argument is invalid, 0 is returned. If the argument is FUNLOAD, and the | <li>The default product is SIRMODS, that is, if the argument is missing or is the null string, the version number of the <var class="product">Sirius Mods</var> is returned. If the argument is invalid, 0 is returned. If the argument is FUNLOAD, and the <i>[[Fast/Unload User Language Interface]]</i> is not available, 0 is returned. | ||
</ul> | </ul> | ||
Revision as of 23:10, 11 November 2014
Current version number of Sirius product
Note: 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
%ver = $SirVer([product])
%ver is set to the current product version number.
Usage notes
- 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.