Changeset 8 for trunk/UAcronym.pas
- Timestamp:
- Apr 21, 2016, 1:12:45 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UAcronym.pas
r6 r8 30 30 TAcronymMeaning = class 31 31 Name: string; 32 Description: string; 32 33 Language: string; 33 34 Acronym: TAcronym; … … 71 72 Name: string; 72 73 Meaning: string; 74 Description: string; 73 75 end; 74 76 … … 86 88 procedure SaveToFile(FileName: string); 87 89 procedure FilterList(AName: string; Items: TAcronymMeanings); 88 procedure AddAcronym(AcronymName, MeaningName: string);90 function AddAcronym(AcronymName, MeaningName: string): TAcronymMeaning; 89 91 procedure RemoveAcronym(AcronymName, MeaningName: string); 90 92 end; … … 324 326 end; 325 327 326 procedure TAcronymDb.AddAcronym(AcronymName, MeaningName: string);328 function TAcronymDb.AddAcronym(AcronymName, MeaningName: string): TAcronymMeaning; 327 329 var 328 330 Acronym: TAcronym; … … 342 344 Acronym.Meanings.Add(Meaning); 343 345 end; 346 Result := Meaning; 344 347 Modified := True; 345 348 end;
Note:
See TracChangeset
for help on using the changeset viewer.