-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDataModuleUnit.dfm
More file actions
194 lines (192 loc) · 4.65 KB
/
Copy pathDataModuleUnit.dfm
File metadata and controls
194 lines (192 loc) · 4.65 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
object DataModule1: TDataModule1
OldCreateOrder = False
OnCreate = DataModuleCreate
Left = 1421
Top = 176
Height = 262
Width = 224
object ADOConnection: TADOConnection
ConnectionString =
'Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\Working\MyProgra' +
'ms\Delphi\'#1056#1077#1075#1080#1089#1090#1088#1072#1094#1080#1103' '#1091#1095#1072#1089#1090#1085#1080#1082#1086#1074'\DB\BASE.mdb;Persist Security In' +
'fo=False;'
LoginPrompt = False
Mode = cmShareDenyNone
Provider = 'Microsoft.Jet.OLEDB.4.0'
Left = 80
Top = 8
end
object WeightADOQuery: TADOQuery
Connection = ADOConnection
Parameters = <>
SQL.Strings = (
'SELECT * FROM t_weights')
Left = 144
Top = 56
end
object AgeADOQuery: TADOQuery
Connection = ADOConnection
Parameters = <>
SQL.Strings = (
'SELECT * FROM t_ages ')
Left = 16
Top = 56
end
object BeltADOQuery: TADOQuery
Connection = ADOConnection
Parameters = <>
SQL.Strings = (
'SELECT * FROM t_belts')
Left = 80
Top = 56
end
object PlayersADOQuery: TADOQuery
Connection = ADOConnection
Parameters = <
item
Name = 'age'
Attributes = [paNullable]
DataType = ftFixedChar
NumericScale = 255
Precision = 255
Size = 510
Value = Null
end
item
Name = 'weight'
Attributes = [paNullable]
DataType = ftFixedChar
NumericScale = 255
Precision = 255
Size = 510
Value = Null
end
item
Name = 'belt'
Attributes = [paNullable]
DataType = ftFixedChar
NumericScale = 255
Precision = 255
Size = 510
Value = Null
end>
SQL.Strings = (
'SELECT FIO FROM (t_ages INNER JOIN (t_belts INNER JOIN (t_weight' +
's INNER JOIN t_main ON t_weights.id = t_main.weight) ON t_belts.' +
'id = t_main.belt) ON t_ages.id = t_main.age) WHERE t_ages.age = ' +
':age AND t_weights.weight = :weight and t_belts.belt = :belt')
Left = 56
Top = 112
end
object ResultsADOQuery: TADOQuery
Connection = ADOConnection
Parameters = <
item
Name = 'pl1'
Attributes = [paNullable]
DataType = ftFixedChar
NumericScale = 255
Precision = 255
Size = 510
Value = Null
end
item
Name = 'scores1'
DataType = ftString
Size = -1
Value = Null
end
item
Name = 'pl2'
Attributes = [paNullable]
DataType = ftFixedChar
NumericScale = 255
Precision = 255
Size = 510
Value = Null
end
item
Name = 'scores2'
Size = -1
Value = Null
end
item
Name = 'winner'
Attributes = [paNullable]
DataType = ftFixedChar
NumericScale = 255
Precision = 255
Size = 510
Value = Null
end
item
Name = 'winreason'
Attributes = [paNullable]
DataType = ftFixedChar
NumericScale = 255
Precision = 255
Size = 510
Value = Null
end
item
Name = 'timetoend'
Attributes = [paNullable]
DataType = ftFixedChar
NumericScale = 255
Precision = 255
Size = 510
Value = Null
end
item
Name = 'age'
Attributes = [paNullable]
DataType = ftFixedChar
NumericScale = 255
Precision = 255
Size = 510
Value = Null
end
item
Name = 'belt'
Attributes = [paNullable]
DataType = ftFixedChar
NumericScale = 255
Precision = 255
Size = 510
Value = Null
end
item
Name = 'weight'
Attributes = [paNullable]
DataType = ftFixedChar
NumericScale = 255
Precision = 255
Size = 510
Value = Null
end
item
Name = 'time'
Attributes = [paNullable]
DataType = ftFixedChar
NumericScale = 255
Precision = 255
Size = 510
Value = Null
end>
SQL.Strings = (
'INSERT INTO [t_results] ([Player1], [Scores1], [Player2], [Score' +
's2], [Winner], [WinReason], [TimeToEnd], [Weight], [Age], [Belt]' +
', [Time]) VALUES (:pl1, :scores1, :pl2, scores2, :winner, :winre' +
'ason, :timetoend, :age, :belt, :weight, :time)')
Left = 112
Top = 112
end
object TestADOQuery: TADOQuery
Connection = ADOConnection
Parameters = <>
SQL.Strings = (
'SELECT COUNT(*) FROM t_main')
Left = 90
Top = 170
end
end