Changeset 24 for trunk/Forms/UFormFields.pas
- Timestamp:
- Mar 26, 2018, 11:37:46 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormFields.pas
r23 r24 108 108 if FormField.ShowModal = mrOk then begin 109 109 FormField.Save(TField(ListView1.Selected.Data)); 110 Fields.Table.DbClient.Query('UPDATE ModelField SET TextBefore = ' + TField(ListView1.Selected.Data).TextBefore + 111 ' WHERE Name = ' + TField(ListView1.Selected.Data).Name); 110 Fields.Table.DbClient.Query('UPDATE ModelField SET Caption = ' + TField(ListView1.Selected.Data).TextBefore + 111 ' , DataType = ' + TField(ListView1.Selected.Data).DataType.Name + 112 ' WHERE Model = ' + Fields.Table.Name +' , Name = ' + TField(ListView1.Selected.Data).Name); 112 113 ReloadList; 113 114 end; … … 123 124 begin 124 125 if Assigned(ListView1.Selected) then begin 125 Fields.Table.DbClient.Query('DELETE FROM ModelField WHERE Name = ' + TField(ListView1.Selected.Data).Name); 126 Fields.Table.DbClient.Query('DELETE FROM ModelField WHERE Model = ' + Fields.Table.Name + 127 ' , Name = ' + TField(ListView1.Selected.Data).Name); 126 128 ReloadList; 127 129 UpdateInterface;
Note:
See TracChangeset
for help on using the changeset viewer.