Changeset 117 for branches/generator/Forms/UFormRules.pas
- Timestamp:
- Nov 27, 2017, 1:09:38 PM (7 years ago)
- Location:
- branches/generator
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/generator
- Property svn:ignore
-
old new 2 2 generator.lps 3 3 lib 4 heaptrclog.trc
-
- Property svn:ignore
-
branches/generator/Forms/UFormRules.pas
r116 r117 73 73 NewRule := TRule.Create; 74 74 NewRule.Grammer := Rules.Grammer; 75 FormRule := TFormRule.Create(nil); 75 76 FormRule.LoadData(NewRule); 76 77 if FormRule.ShowModal = mrOk then begin … … 79 80 ReloadList; 80 81 end else FreeAndNil(NewRule); 82 FreeAndNil(FormRule); 81 83 end; 82 84 … … 84 86 var 85 87 Rule: TRule; 88 FormRule: TFormRule; 86 89 begin 87 90 Rule := TRule(ListView1.Selected.Data); 91 FormRule := TFormRule.Create(nil); 88 92 FormRule.LoadData(Rule); 89 93 if FormRule.ShowModal = mrOk then begin … … 91 95 ReloadList; 92 96 end; 97 FreeAndNil(FormRule); 93 98 end; 94 99 … … 118 123 Item.Caption := Rules[Item.Index].Name; 119 124 Item.Data := Rules[Item.Index]; 120 Item.SubItems.Add(Rules[Item.Index].Items.GetBNF (Rules[Item.Index].Items.RuleType));125 Item.SubItems.Add(Rules[Item.Index].Items.GetBNF); 121 126 end; 122 127 end;
Note:
See TracChangeset
for help on using the changeset viewer.