39 |
|
{ TIBDataSetEditorForm } |
40 |
|
|
41 |
|
TIBDataSetEditorForm = class(TForm) |
42 |
+ |
GenerateParams: TCheckBox; |
43 |
|
TestBtn: TButton; |
44 |
|
CancelButton: TButton; |
45 |
|
FieldsPage: TTabSheet; |
109 |
|
with TIBDataSetEditorForm.Create(Application) do |
110 |
|
try |
111 |
|
SetDataSet(DataSet); |
112 |
< |
Result := ShowModal = mrOK |
112 |
> |
if assigned(DataSet) then |
113 |
> |
GenerateParams.Checked := DataSet.GenerateParamNames; |
114 |
> |
Result := ShowModal = mrOK; |
115 |
> |
if Result and assigned(DataSet) then |
116 |
> |
DataSet.GenerateParamNames := GenerateParams.Checked |
117 |
|
finally |
118 |
|
Free |
119 |
|
end; |
166 |
|
procedure TIBDataSetEditorForm.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 TIBDataSetEditorForm.GenerateButtonClick(Sender: TObject); |
290 |
|
end; |
291 |
|
|
292 |
|
end. |
293 |
< |
|
293 |
> |
|