Subject | Re: Return values from stored procedure |
---|---|
Author | sgharp |
Post date | 2004-05-28T20:32:18Z |
--- In IBObjects@yahoogroups.com, "constantijnw" <wolfs@x> wrote:
component must need the return parameter defined somewhere.
> Hi Steve,executed
>
> RETURNING_VALUES is a psql language element. Use it inside a stored
> procedure when retrieving returnvalues from another procedure
> there.When I do this I get an error "FieldName: pSuccess not found". The
>
> Using a TIB_DSQL component you do something like this:
>
> .
> .
> dsql.SQL := 'EXECUTE PROCEDURE spClearIxTables(:INPUTPAR1,.... )';
> dsql.Prepare;
> dsql.ParamByName('INPUTPAR1').AsSomeType := AValue;
> .
> .
> dsql.ExecSQL;
> MyResult := dsql.FIELDByName('PSUCCESS').AsSomeType;
component must need the return parameter defined somewhere.