Changeset 152 for trunk/UAcronym.pas


Ignore:
Timestamp:
Oct 16, 2017, 3:05:22 PM (7 years ago)
Author:
chronos
Message:
  • Added: Status bar to show total number of acronyms and their meanings. Status bar can be hidden.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UAcronym.pas

    r148 r152  
    235235    procedure SaveToFileCSV(FileName: string);
    236236    procedure FilterList(AName: string; Items: TAcronymMeanings);
     237    function GetMeaningsCount: Integer;
    237238    function AddAcronym(AcronymName, MeaningName: string): TAcronymMeaning;
    238239    procedure RemoveMeaning(Meaning: TAcronymMeaning);
     
    16501651end;
    16511652
     1653function TAcronymDb.GetMeaningsCount: Integer;
     1654var
     1655  I: Integer;
     1656begin
     1657  Result := 0;
     1658  for I := 0 to Acronyms.Count - 1 do
     1659    Result := Result + TAcronym(Acronyms[I]).Meanings.Count;
     1660end;
     1661
    16521662function TAcronymDb.AddAcronym(AcronymName, MeaningName: string): TAcronymMeaning;
    16531663var
Note: See TracChangeset for help on using the changeset viewer.