Menu

#76 in Macros %VERxxx% does not resolve to the real version number in Delphi 10.2

Closed
closed-fixed
None
5
2018-07-05
2018-07-04
No

if have a Macro template:

//%VERMAJOR%.%VERMINOR%.%VERRELEASE%.%VERBUILD% -%DATETIME% :AVW|

when I use it i always get:
//1.0.0.0 - 3-7-2018 8:13:43 :AVW

-> (%VERMAJOR%.%VERMINOR%.%VERRELEASE%.%VERBUILD%) doesn't give the real version info

I use Gexperts in Embarcadero® RAD Studio 10.2

Steps:

  1. Start RAD Studio 10.2 from the start menu
  2. The default (empty) project is open
  3. Set the version number to something like 1.2.3.4
  4. On the main menu, select ...<shift><alt><t></t></alt></shift>
  5. select Macro
    5.Gives back
    //1.0.0.0- 3-7-2018 8:13:43 :AVW
    not the real version info

Configuration:
OS: Windows 7 6.1 (Build 7601: Service Pack 1)
GExperts: GExpertsRS102.dll 1.3.8.50 from 1-4-2017 15:28:22
IDE: ideRS102

(submitted via GExperts bug report by anton van Wooning)

I can reproduce it in Delphi 10.2.3. It works fine in Delphi 2007. I have not tested other versions.

Discussion

  • Thomas Mueller

    Thomas Mueller - 2018-07-04

    Apparently the ToolsAPI call using IOTAProjectOptions.Values['MajorVersion'] (and 'MinorVersion', 'Release' and 'Build') don't work any more as they used to. It probably has something to do with the support for multiple platforms and configurations, but I could not yet figure out how to get the data.

     
  • Thomas Mueller

    Thomas Mueller - 2018-07-05
    • status: open --> closed-fixed
    • Group: New --> Closed
     

Log in to post a comment.

MongoDB Logo MongoDB