_COMPILERVERSION$
The _COMPILERVERSION$ function returns the QB64-PE compiler version used to compile a program.
Syntax
- compVers$ = _COMPILERVERSION$
Description
- Returns a STRING listing the version as QB64-PE vX.Y.Z for official releases, QB64-PE vX.Y.Z-nn-hhhhhhhh for GitHub CI builds (development artifacts) or QB64-PE vX.Y.Z-UNKNOWN for unknown builds from repository clones/forks by any users.
- The purpose of this information is, that a program may print it in "About" boxes, splash screens or in debug logfiles.
Availability
-
none
-
v4.5.0
-
yes
-
yes
-
yes
Examples
- Showcasing all general compiler information functions.
'Getting info where and when a program was compiled. PRINT: PRINT " This program was compiled on "; COLOR 15: PRINT _COMPILEDATE$; COLOR 7: PRINT " at "; COLOR 15: PRINT _COMPILETIME$; COLOR 7: PRINT " by " COLOR 7: PRINT " using "; COLOR 15: PRINT _COMPILERVERSION$; " "; _OS$; COLOR 7: PRINT "." END |
- This is how the output could look like, the exact data actually depends on the circumstances during the compile operation.
This program was compiled on Mar 6 2026 at 19:43:21 by using QB64-PE v4.5.0 [WINDOWS][64BIT]. |
See also