Futurebasic/Language/Reference/compilerversion

= COMPILERVERSION function =

Function
✔ Appearance ✔ Standard ✔ Console

Description
This function returns the current version of the compiler. The number is internally set before each compiler is shipped. The purpose of this function is to determine whether or not a specific functionality is present before a particular command is executed.

If, for example, you wanted to invoke a routine that was not added to the compiler until version 3 release 2, you would check the version as follows:

The  function always returns a long word which is formatted as follows:

Byte 1 = Version number Byte 2 = Release number Byte 3 = Revision Number Byte 4 = Fix