Ver Mensaje Individual
  #3  
Antiguo 25-10-2006
JuanPa1 JuanPa1 is offline
Miembro
 
Registrado: may 2006
Posts: 66
Reputación: 18
JuanPa1 Va por buen camino
El procedimiento es este:
create procedure sptecnologia(numcel in number)
is
tecno varchar2(10);
begin
select tecnologia into tecno from celular where numero = numcel;
dbms_output.put_line(tecno);
end;

Estoy utilizando TADOStoreProc. El codigo en delphi para invocar al mismo es este:

procedure TForm1.Button1Click(Sender: TObject);
begin
Try
sp.ProcedureName := 'SPTECNOLOGIA';
sp.FieldByName('NUMCEL').AsInteger := 098147821;
sp.ExecProc;
ShowMessage(sp.FieldByName('tecno').AsString);
Finally
sp.Free;
End;
end;


Al ejecutar me da este error:
'sp:Field 'NUMCEL' not found'

que crees que estoy haciendo mal para que me salga este error?
Responder Con Cita