PB5.73 LTS #PB_Editor_ProductVersion: wrong value
Posted: Sat Feb 20, 2021 5:04 pm
I think, #PB_Editor_ProductVersion is sometimes interpreted as a float value and sometimes as a string...
Code: Select all
; Steps to reproduce:
; ---------------------------
;
; 1. open IDE menu "Compiler > Compiler Options..."
;
; 2. Go to tab "Version Info"
;
; 3. activate checkbox "Include Version Information"
;
; 4a. change "Product Version *:" to "1.0" and click OK
;
; 4b. change "Product Version *:" to "1.0.0.0" and click OK
;
; 5. open IDE menu "Compiler > Compile with Debugger"
Debug #PB_Editor_ProductVersion
Debug ""+#PB_Editor_ProductVersion
; Debugoutput with "Product Version *: 1.0" (4a)
;
; [16:55:41] 1.0
; [16:55:41] 1
; Debugoutput with "Product Version *: 1.0.0.0" (4b)
;
; [16:56:11] 1.0.0.0
; [16:56:11] 1.0.0.0