Skip to content

Commit

Permalink
chore: Adding a version file
Browse files Browse the repository at this point in the history
  • Loading branch information
gcarreno committed Jan 15, 2024
1 parent 9b368e4 commit 80885a5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
9 changes: 6 additions & 3 deletions example/forms/form.main.pas
Original file line number Diff line number Diff line change
Expand Up @@ -57,21 +57,24 @@ TfrmMain = class(TForm)
frmMain: TfrmMain;

resourcestring
rsFormCaption = 'Object Pascal Parser Example';
rsFormCaption = 'Object Pascal Parser v%s Example';

implementation

{$R *.lfm}

uses
LCLType
;

{$R *.lfm}
const
cVersion = {$I version.inc};

{ TfrmMain }

procedure TfrmMain.FormCreate(Sender: TObject);
begin
Caption:= rsFormCaption;
Caption:= Format(rsFormCaption, [ cVersion ]) ;
InitShortcuts;
FParser:= nil;
end;
Expand Down
1 change: 1 addition & 0 deletions src/version.inc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
'0.1'

0 comments on commit 80885a5

Please sign in to comment.