Subject | Save a query satus |
---|---|
Author | likemike46 |
Post date | 2002-01-18T13:30:47Z |
Hello friends,
I wan't to save the status of an IBOQuery (SQL, Params) and want to
reload it later.
For saving I use
VAR SaveParams : TParams;
:
WITH Query1 DO BEGIN
SaveSQL:=SQL.Text;
SaveParams:=TParams.Create; SaveParams.Assign(Params);
END;
for loading I use
WITH Query1 DO BEGIN
Close;
SQL.Text:=SaveSQL;
Params.Clear;
Params.AssignValues(SaveParams); SaveParams.Free;
Open;
END;
The problem is, that the Params are not correct.
This has worked with BDE, but not with IBO.
Any suggestions are welcome.
Best regards
Mike
I wan't to save the status of an IBOQuery (SQL, Params) and want to
reload it later.
For saving I use
VAR SaveParams : TParams;
:
WITH Query1 DO BEGIN
SaveSQL:=SQL.Text;
SaveParams:=TParams.Create; SaveParams.Assign(Params);
END;
for loading I use
WITH Query1 DO BEGIN
Close;
SQL.Text:=SaveSQL;
Params.Clear;
Params.AssignValues(SaveParams); SaveParams.Free;
Open;
END;
The problem is, that the Params are not correct.
This has worked with BDE, but not with IBO.
Any suggestions are welcome.
Best regards
Mike