Changeset 26 for trunk/Forms/UFormFields.pas
- Timestamp:
- Sep 10, 2022, 8:03:08 PM (2 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:ignore
-
old new 7 7 heaptrclog.trc 8 8 MyData.exe 9 MyData.dbg 10
-
- Property svn:ignore
-
trunk/Forms/UFormFields.pas
r24 r26 1 1 unit UFormFields; 2 3 {$mode delphi}4 2 5 3 interface … … 40 38 procedure ListView1SelectItem(Sender: TObject; Item: TListItem; 41 39 Selected: Boolean); 42 private43 { private declarations }44 40 public 45 41 Fields: TFields; … … 166 162 Fields.Table.DbClient.Query('SELECT * FROM ModelField WHERE Model = ' + Fields.Table.Name, DbRows); 167 163 for I := 0 to DbRows.Count - 1 do begin 168 NewField := Fields.AddNew(DbRows[I].Values['Name'], Fields.Table.DbClient.DbManager.DataTypes.SearchByName(DbRows[I].Values['DataType'])); 169 NewField.TextBefore := DbRows[I].Values['Caption']; 164 NewField := Fields.AddNew(DbRows[I].Items['Name'], 165 Fields.Table.DbClient.DbManager.DataTypes.SearchByName(DbRows[I].Items['DataType'])); 166 NewField.TextBefore := DbRows[I].Items['Caption']; 170 167 end; 171 168 DbRows.Free;
Note:
See TracChangeset
for help on using the changeset viewer.