Syntax

code

Function: CurrentVersion;

Description

Returns the current version of the active PlanSwift application.

Code Reference

  • 1. Create a New Form application
  • 2. Add a button to the form
  • 3. add Planswift to reference (Planswift9_tlb in the uses)
  • 4. copy code to button onclick event

code

1

2

3

4

5

6

7

8

9

10

11

procedure TForm1.psCurrentVersion(sender: TObject);

var

  ps: IPlanSwift;

begin

//Create Planswift Interface

ps := coPlanswift.Create;

//Show Current Version of Planswift

ShowMessage(ps.CurrentVersion);

//Free the Planswift Interface

ps := nil;

end;