$SirVer

From m204wiki
Jump to navigation Jump to search

Current version number of Sirius product

Note: Many $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.

Syntax

%ver = $SirVer([product])

Syntax terms

%ver A numeric variable that is set to the current version number of the requested product.
product A string corresponding to one of the following products:

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 following program would stop if the Sirius Mods were older than release 6.03:

    IF $SirVer < 603 THEN PRINT 'OBSOLETE SIRIUS FUNCTIONS' STOP END IF

  • The default product value 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 SOUL Interface is not available, 0 is returned.

Products authorizing $SirVer