F-IN-BOX Delphi Edition Help >> TFlashPlayerControl / TTransparentFlashPlayerControl >> Globals

GetInstalledFlashVersion

Syntax

[ Delphi ]
function GetInstalledFlashVersion(var FlashVersion: TFlashVersion): Boolean;

[ Builder C++ ]
bool __fastcall GetInstalledFlashVersion(TFlashVersion& FlashVersion);

Description

Returns version of the Flash that is installed in the system.

Here's an example of how to use this function:

[ Delphi ]
var
  InstalledFlashVersion: TFlashVersion;
begin
  if FlashPlayerControl.GetInstalledFlashVersion(InstalledFlashVersion) then
    ShowMessage
    (
      Format
      (
        'Installed version: %d.%d.%d.%d',
        [
          InstalledFlashVersion.version[3],
          InstalledFlashVersion.version[2],
          InstalledFlashVersion.version[1],
          InstalledFlashVersion.version[0]
        ]
      )
    )
  else
    ShowMessage('Flash not installed');
end;

[ Builder C++ ]
TFlashVersion InstalledFlashVersion;
Flashplayercontrol::GetInstalledFlashVersion(InstalledFlashVersion);

More about TFlashPlayerControl
Copyright © Softanics. All rights reserved
F-IN-BOX is a registered trademark of Softanics|Delphi is a trademark of Borland Software Corporation|Macromedia and Shockwave Flash are trademarks of Adobe, Inc.