1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-07-04 07:10:22 +00:00
QB64-PE/source/global/version.bas
FellippeHeitor d1acd48e32 Adds version number to status bar. Also:
Allows clicking the status bar Version and Line number to open the About and the "Go to line"  dialogs.
2021-01-18 18:22:00 -03:00

16 lines
470 B
QBasic

DIM SHARED Version AS STRING
DIM SHARED BuildNum AS STRING
DIM SHARED AutoBuildMsg AS STRING
Version$ = "1.5"
BuildNum$ = "(development build)"
IF _FILEEXISTS("internal/version.txt") THEN
versionfile = FREEFILE
OPEN "internal/version.txt" FOR INPUT AS #versionfile
LINE INPUT #versionfile, AutoBuildMsg
AutoBuildMsg = _TRIM$(AutoBuildMsg)
IF LEFT$(AutoBuildMsg, 9) <> "From git " THEN AutoBuildMsg = ""
CLOSE #versionfile
END IF