The Delphi 12 IDE allows editing of the FMX module version number in Project | Options | Application | Version Info.
How can I access the build number of my FMX project in code?
GetVersionString (from FMX.Platform.IFMXApplicationService) returns a string with the version number of the application.
All the details are available here:
Delphi's documentation sucks. It doesn't show the correct way to use the function.
It should be like this:
function GetAppVersion: string;
var
AppService: IFMXApplicationService;
begin
if TPlatformServices.Current.SupportsPlatformService(IFMXApplicationService, IInterface(AppService)) then
Result := AppService.AppVersion
else
Result := 'Version info not available';
end;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With