Ignore:
Timestamp:
Jan 23, 2015, 12:00:37 AM (10 years ago)
Author:
chronos
Message:
  • Modified: All data types have own table which is used to specify supported data types by database engines.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormRecord.pas

    r5 r8  
    100100    NewLabel.Visible := True;
    101101    Labels.Add(NewLabel);
    102     case TField(Table.Fields[I]).FieldType of
     102    case TField(Table.Fields[I]).DataType.FieldType of
    103103      ftString: begin
    104104        NewControl := TEdit.Create(Panel1);
     
    160160begin
    161161  for I := 0 to Table.Fields.Count - 1 do begin
    162     case TField(Table.Fields[I]).FieldType of
     162    case TField(Table.Fields[I]).DataType.FieldType of
    163163      ftString: TValueString(Row.Values[I]).Value := TEdit(Controls[I]).Text;
    164164      ftInteger: TValueInteger(Row.Values[I]).Value := TSpinEdit(Controls[I]).Value;
Note: See TracChangeset for help on using the changeset viewer.