Subject | SqlWhere causing Access Violation with Fields ! |
---|---|
Author | |
Post date | 2015-12-09T06:32:49Z |
Hi,
When I use SqlWhere on TIBQuery it works using FiedlByName('myfield').AsString, I can read the field. But if i use TIB_Column like the sample below, I receive access violation, the code worked before, but with the version 5.7.7 2340 the error is detected.
Trpt_Boleto = class(TRpt_Modelo)
private
Field_Sacado_NomeSacado : TIB_Column;
end;
procedure TRpt_boleto.Montar_Titulo;
begin
with DM_SINDICAL.IBQry_AssociadoConsultaBoleto do
begin
close;
SqlWhere.Clear;
SqlWhere.Add(' WHERE A.MATRICULA = 999003');
Field_Sacado_NomeSacado := FieldByName('NOME_ASSOCIADO');
Open;
showmessage(Field_Sacado_NomeSacado.AsString); <=== Access Violation
end;
end;
If I use ParamByName() without the sqlwhere the code works, Is it a bug the IBO? Could please anyone help me?
Thanks
Toninho