I’m using Delphi 13 for my FMX app and came across an oddity when creating an about screen.
TPlatformWin.GetVersionString only returns Major.Minor but the Android version returns Major.Minor.Release (neither return Build which is fine by me).
Tracing into the source suggests that this is the way it’s meant to be, but why? I realise I can probably make my own code to get a more detailed Windows version string, but surely FMX should already do that?
The Android variant returns whatever is in the versionName property in the project options. It’s just a string value (which defaults to 1.0.0) so if you put 1.2.3.4.5.6, it will return that.
Yes, it’s returning only the most significant part of the version info. For more detail on Windows you could use the standalone function GetProductVersion, which includes Build.
That’s what I was thinking of so I’ll add another function to my FMX Helpers unit that uses that instead of the FMX one for Windows. Somewhat annoying to have to create a workaround for something that should return a consistent format out of the box.