mirror of
https://github.com/QB64-Phoenix-Edition/QB64pe.git
synced 2024-09-14 16:53:51 +00:00
d1acd48e32
Allows clicking the status bar Version and Line number to open the About and the "Go to line" dialogs.
15 lines
470 B
QBasic
15 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
|
|
|