home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Delphi 4 Bible
/
Delphi_4_Bible_Tom_Swan_IDG_Books_1998.iso
/
source
/
WinesCalc
/
Main.dfm
/
Main.txt
Wrap
Text File
|
1998-03-17
|
3KB
|
129 lines
object MainForm: TMainForm
Left = 230
Top = 203
Width = 641
Height = 273
Caption = 'Database Calculated Fields Demonstration'
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -11
Font.Name = 'MS Sans Serif'
Font.Style = []
PixelsPerInch = 96
TextHeight = 13
object DBNavigator1: TDBNavigator
Left = 8
Top = 16
Width = 240
Height = 25
DataSource = DataSource1
TabOrder = 0
end
object DBGrid1: TDBGrid
Left = 8
Top = 56
Width = 601
Height = 137
DataSource = DataSource1
TabOrder = 1
TitleFont.Charset = DEFAULT_CHARSET
TitleFont.Color = clWindowText
TitleFont.Height = -11
TitleFont.Name = 'MS Sans Serif'
TitleFont.Style = []
Columns = <
item
FieldName = 'Name'
end
item
FieldName = 'Source'
end
item
FieldName = 'Vintage'
end
item
FieldName = 'Purchased'
end
item
FieldName = 'Days Old'
end>
end
object BitBtn1: TBitBtn
Left = 536
Top = 208
Width = 75
Height = 25
TabOrder = 2
Kind = bkClose
end
object DataSource1: TDataSource
DataSet = Table1
Left = 288
Top = 8
end
object Table1: TTable
Active = True
DatabaseName = 'WINES'
FieldDefs = <
item
Name = 'Name'
DataType = ftString
Precision = 0
Required = False
Size = 32
end
item
Name = 'Number'
DataType = ftFloat
Precision = 0
Required = False
Size = 0
end
item
Name = 'Source'
DataType = ftString
Precision = 0
Required = False
Size = 32
end
item
Name = 'Vintage'
DataType = ftString
Precision = 0
Required = False
Size = 4
end
item
Name = 'Purchased'
DataType = ftDate
Precision = 0
Required = False
Size = 0
end>
StoreDefs = True
TableName = 'Wines.DB'
Left = 352
Top = 8
object Table1Name: TStringField
FieldName = 'Name'
Size = 32
end
object Table1Source: TStringField
FieldName = 'Source'
Size = 32
end
object Table1Vintage: TStringField
FieldName = 'Vintage'
Size = 4
end
object Table1Purchased: TDateField
FieldName = 'Purchased'
end
object Table1DaysOld: TIntegerField
FieldName = 'Days Old'
OnGetText = Table1DaysOldGetText
Calculated = True
end
end
end