38 |
|
{ TIBUpdateSQLEditorForm } |
39 |
|
|
40 |
|
TIBUpdateSQLEditorForm = class(TForm) |
41 |
+ |
GenerateParams: TCheckBox; |
42 |
|
TestBtn: TButton; |
43 |
|
CancelButton: TButton; |
44 |
|
FieldsPage: TTabSheet; |
109 |
|
with TIBUpdateSQLEditorForm.Create(Application) do |
110 |
|
try |
111 |
|
SetUpdateObject(UpdateObject); |
112 |
< |
Result := ShowModal = mrOK |
112 |
> |
if assigned(UpdateObject.DataSet) then |
113 |
> |
GenerateParams.Checked := UpdateObject.DataSet.GenerateParamNames; |
114 |
> |
Result := ShowModal = mrOK; |
115 |
> |
if Result and assigned(UpdateObject.DataSet) then |
116 |
> |
UpdateObject.DataSet.GenerateParamNames := GenerateParams.Checked |
117 |
|
finally |
118 |
|
Free |
119 |
|
end; |
166 |
|
procedure TIBUpdateSQLEditorForm.TestBtnClick(Sender: TObject); |
167 |
|
begin |
168 |
|
if SQLMemo.Lines.Text <> '' then |
169 |
< |
FIBSystemTables.TestSQL(SQLMemo.Lines.Text); |
169 |
> |
FIBSystemTables.TestSQL(SQLMemo.Lines.Text,GenerateParams.Checked); |
170 |
|
end; |
171 |
|
|
172 |
|
procedure TIBUpdateSQLEditorForm.GenerateBtnClick(Sender: TObject); |
285 |
|
|
286 |
|
|
287 |
|
end. |
288 |
< |
|
288 |
> |
|