40 |
|
TIBSQLEditorForm = class(TForm) |
41 |
|
Button1: TButton; |
42 |
|
Button2: TButton; |
43 |
+ |
GenerateParams: TCheckBox; |
44 |
|
GenerateBtn: TButton; |
45 |
|
IBTransaction1: TIBTransaction; |
46 |
|
Label5: TLabel; |
135 |
|
try |
136 |
|
SetDatabase(DataSet.Database); |
137 |
|
SQLText.Lines.Assign(DataSet.SQL); |
138 |
+ |
GenerateParams.Checked := DataSet.GenerateParamNames; |
139 |
|
Result := ShowModal = mrOK; |
140 |
|
if Result then |
141 |
< |
DataSet.SQL.Assign(SQLText.Lines) |
141 |
> |
begin |
142 |
> |
DataSet.SQL.Assign(SQLText.Lines); |
143 |
> |
DataSet.GenerateParamNames := GenerateParams.Checked |
144 |
> |
end; |
145 |
|
finally |
146 |
|
Free |
147 |
|
end; |
240 |
|
|
241 |
|
procedure TIBSQLEditorForm.TestBtnClick(Sender: TObject); |
242 |
|
begin |
243 |
< |
FIBSystemTables.TestSQL(SQLText.Text); |
243 |
> |
FIBSystemTables.TestSQL(SQLText.Text,GenerateParams.Checked); |
244 |
|
end; |
245 |
|
|
246 |
|
procedure TIBSQLEditorForm.DeleteTableNamesCloseUp(Sender: TObject); |
389 |
|
end; |
390 |
|
|
391 |
|
end. |
392 |
< |
|
392 |
> |
|