FutureBasic Logo

<<    Index    >> FutureBasic 5

CompilerVersion   function



Syntax:
versionNum = CompilerVersion

Description:
This function returns the current build number of FBtoC. The number is internally set before each FutureBasic package 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 FBtoC until build 143, you would check the version as follows:

long if ( CompilerVersion < 143 )
 print "You need a newer version of FBtoC to run this."
xelse
 // new operation goes here.
end if