Changeset 8 for trunk/UAcronym.pas


Ignore:
Timestamp:
Apr 21, 2016, 1:12:45 PM (9 years ago)
Author:
chronos
Message:
  • Added: Also allow to edit acronym detailed description.
  • Added: Import from CSV file.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UAcronym.pas

    r6 r8  
    3030  TAcronymMeaning = class
    3131    Name: string;
     32    Description: string;
    3233    Language: string;
    3334    Acronym: TAcronym;
     
    7172    Name: string;
    7273    Meaning: string;
     74    Description: string;
    7375  end;
    7476
     
    8688    procedure SaveToFile(FileName: string);
    8789    procedure FilterList(AName: string; Items: TAcronymMeanings);
    88     procedure AddAcronym(AcronymName, MeaningName: string);
     90    function AddAcronym(AcronymName, MeaningName: string): TAcronymMeaning;
    8991    procedure RemoveAcronym(AcronymName, MeaningName: string);
    9092  end;
     
    324326end;
    325327
    326 procedure TAcronymDb.AddAcronym(AcronymName, MeaningName: string);
     328function TAcronymDb.AddAcronym(AcronymName, MeaningName: string): TAcronymMeaning;
    327329var
    328330  Acronym: TAcronym;
     
    342344    Acronym.Meanings.Add(Meaning);
    343345  end;
     346  Result := Meaning;
    344347  Modified := True;
    345348end;
Note: See TracChangeset for help on using the changeset viewer.