Changeset 231 for trunk/Forms/FormCategories.pas
- Timestamp:
- Jan 25, 2025, 12:11:20 PM (8 days ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/FormCategories.pas
r230 r231 89 89 var 90 90 S: string; 91 NewCategory: TAcronymCategory; 91 92 begin 92 93 S := InputBox(SCategory, SCategoryQuery, ''); 93 94 if S <> '' then begin 94 95 if not Assigned(AcronymDb.Categories.SearchByName(S)) then begin; 95 TAcronymCategory(AcronymDb.Categories[AcronymDb.Categories.Add(TAcronymCategory.Create)]).Name := S; 96 NewCategory := TAcronymCategory.Create; 97 NewCategory.AcronymDb := Categories.Db; 98 NewCategory.Name := S; 99 Categories.Add(NewCategory); 100 96 101 AcronymDb.Modified := True; 97 102 AcronymDb.Update;
Note:
See TracChangeset
for help on using the changeset viewer.