Ignore:
Timestamp:
Jun 10, 2011, 2:16:52 PM (13 years ago)
Author:
george
Message:
  • Added: Classes for base data types.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UItemView.pas

    r12 r14  
    4242
    4343uses
    44   UMainForm, UItemEdit;
     44  UMainForm, UItemEdit, UDataTypes, UCore;
    4545
    4646{$R *.lfm}
     
    5757begin
    5858  Report := TReport.Create;
    59   Report.Base := MainForm.System;
     59  Report.Base := Core.System;
    6060end;
    6161
     
    9393  I: Integer;
    9494  Column: Integer;
     95  DataType: TDataType;
    9596const
    9697  ColumnCount = 2;
     
    107108
    108109  if Report.Count = 1 then
    109   for I := 0 to Report.Columns.Count - 1 do
    110   if TReportColumn(Report.Columns[I]).TypeDef.TypeIndex = Integer(vtPointer) then begin
     110  for I := 0 to Report.Columns.Count - 1 do begin
     111    DataType := TReportColumn(Report.Columns[I]).CustomType;
     112  if DataType is TDataTypeRelationOne then begin
    111113    TabControl1.Tabs.Add(TReportColumn(Report.Columns[I]).Caption);
    112114  end else begin
     
    126128    if Column = 0 then LastTop := LastTop + 24;
    127129  end;
     130  end;
    128131  Panel2.Visible := TabControl1.Tabs.Count > 0;
    129132end;
Note: See TracChangeset for help on using the changeset viewer.