----- Original Message -----
From: "Jason Wharton" <jwharton@...>
> You should be able to do what you are trying to do.
> If you showed us the code it might help.
I have a TEdit where I trap the Return Key to do a Refresh as:
procedure TfrmCadConvPlan.Edit1KeyPress(Sender: TObject; var Key: Char);
begin
if key=#13 then begin
qroConv.InvalidateSQL;
qroConv.Refresh;
end
end;
procedure TfrmCadConvPlan.qroConvPrepareSQL(Sender: TObject);
begin
if trim(Edit1.Text)<>'' then begin
case qroConv.OrderingItemNo of
1:
qroConv.SQLWhereItems.add('convenio.nconv='+inttostr(strtointdef(Edit1.Text,
-999)));
2: qroConv.SQLWhereItems.add('convenio.nome CONTAINING
'+quotedstr(Edit1.Text));
end;
end;
end;