Subject | Re: [IBO] TIB_ROW |
---|---|
Author | Paul Vinkenoog |
Post date | 2003-11-15T22:40:15Z |
Hi Peter,
But since you only need the value once, you can also bypass the
integer variable NR and the two AsIntegers:
Just call Execute on the TIB_DSQL; you don't have to "close" it.
BTW, I don't remember *why* TIB_StoredProc is less preferable - but
I'm sure someone else does :-)
Greetings,
Paul Vinkenoog
> The Prepost event of the TIB_Import returns a TIB_ROW.ARow.ByName( 'FieldName' ) returns the TIB_Column:
>
> I am trying to access all of the parameters as suggested by Jason to
> call a stored procedure that does an error trap on error code -803.
>
> I can access them by index, which I know is wrong.
> How do I access parameters by name ?
> // How do I do this by name ?????NR := ARow.ByName( 'NR' ).AsInteger;
> NR := Arow.Columns[0].AsInteger; // field is called NR
But since you only need the value once, you can also bypass the
integer variable NR and the two AsIntegers:
> with IB_DeleteProc do---> ParamByName( 'NR' ).Assign( ARow.ByName( 'NR' ) );
> begin
> // ParamByName('NR').AsInteger := NR;
> If not prepared then Prepare;Is IB_DeleteProc a TIB_StoredProc? Better use TIB_DSQL to call an SP.
> ExecSQL;
> close;
Just call Execute on the TIB_DSQL; you don't have to "close" it.
BTW, I don't remember *why* TIB_StoredProc is less preferable - but
I'm sure someone else does :-)
Greetings,
Paul Vinkenoog