Code: Select all
function TForm7.CallStoredProc(param1: integer; param2: string): string;
var IBCStoredProc2: TIBCStoredProc;
begin
IBCStoredProc1.Connection := IBCConnection1;
IBCStoredProc1.Options.DescribeParams := true;
IBCStoredProc1.StoredProcName := 'EXAMPLE_STORED_PROC';
IBCStoredProc1.Prepare;
IBCStoredProc1.Params[0].AsInteger := param1;
IBCStoredProc1.Params[1].AsString := param2;
IBCStoredProc1.Transaction.Active := True;
IBCStoredProc1.ExecProc;
IBCStoredProc1.Transaction.Commit;
Result := IBCStoredProc1.Params[2].AsString;
end;Can someone tell me what's happening?