W
wglifs
Unregistered / Unconfirmed
GUEST, unregistred user!
用Delphi调用时出现错误:ADOSP_Tmp:field 'rValue' not found存储过程CREATE procedure p_ReTest @CartonID varchar(20), @UserID varchar(20), @rValue int output) with encryption as set @rValue = 0 update shipscan set Re_User=@UserID,Re_Date=GetDate(),Re_Status =1 where CartonNo=@CartonID update shipment set Re_Status=1 where CartonNo=@CartonID set @rValue = 1DELPHI调用 with DM.ADOSP_Tmp do begin Close; ProcedureName := 'p_ReTest'; Parameters.Clear; Parameters.CreateParameter('CartonID',ftString,pdinput,20,null); Parameters.CreateParameter('UserID',ftString,pdInput,20,null); Parameters.CreateParameter('rValue',ftInteger,pdOutput,20,0); Parameters.ParamByName('CartonID').Value := '12345678'; Parameters.ParamByName('UserID').Value := '0001'; Prepared := True; ExecProc; end; if DM.ADOSP_Tmp.FieldByName('rValue').Value <> 1 then begin Application.MessageBox('Upgrade failure','Prompt',64); Exit; end;