chona
27-10-2006, 22:36:13
Hola amigos, tengo un proble con delphi 5, es que tengo un edit con el siguiente código
procedure Tfconsulta.Edit2Change(Sender: TObject);
begin
TRY
fconsulta.QryGRILLA.Close;
fconsulta.QryGRILLA.SQL.Text:='select id, servicio, precio from carta where servicio like ''' + edit2.Text+'%' + ''' order by servicio';
fconsulta.QryGRILLA.ExecSQL;
fconsulta.QryGRILLA.Open;
except on exception do
begin
end
end;//try
end;
el problema es que escribo y borro en el edit2 varias veces y salta el siguiente error
Proyect E:\Desarrollos\Comedor.exe faulted witch message: 'access violation at 0x7c9477c9: write of address 0x00030ff00'. Process Stopped. Use Step or Run to continue
me podría decir alguien que está ocurriendo??
Desde muchísimas gracias!!!
procedure Tfconsulta.Edit2Change(Sender: TObject);
begin
TRY
fconsulta.QryGRILLA.Close;
fconsulta.QryGRILLA.SQL.Text:='select id, servicio, precio from carta where servicio like ''' + edit2.Text+'%' + ''' order by servicio';
fconsulta.QryGRILLA.ExecSQL;
fconsulta.QryGRILLA.Open;
except on exception do
begin
end
end;//try
end;
el problema es que escribo y borro en el edit2 varias veces y salta el siguiente error
Proyect E:\Desarrollos\Comedor.exe faulted witch message: 'access violation at 0x7c9477c9: write of address 0x00030ff00'. Process Stopped. Use Step or Run to continue
me podría decir alguien que está ocurriendo??
Desde muchísimas gracias!!!