Subject | Correction::Re: [IBO] Urgent - Bug in IBO Parameters ? |
---|---|
Author | Helen Borrie |
Post date | 2001-01-23T14:08:37Z |
At 12:58 AM 24-01-01 +1100, I wrote:
InterBase Developer Initiative ยท http://www.interbase2000.org
_______________________________________________________
>create procedure Get_CadPFJ (CodPFJ1 integer, CodPFJ2 integer, in_TipPFJSorry - change this line to
>varchar(20))
>as
>begin
>IF (in_TipPFJ = 'ForCli') then
> FOR
> select field1, field2, ....TipPFJ, CodPFJ
> from CadPFJ
> where ((CodEmp = 1 AND CodPFJ BETWEEN :CodPFJ1 and :CodPFJ2)
> and (TipPFJ in ('Fornec', 'Client', 'ForCli')))
> order by CodPFJ
> into :field1, :field2, ... :TipPFJ, :CodPFJ
> DO
> suspend;
>ELSE
> FOR
> select field1, field2, ....TipPFJ, CodPFJ
> from CadPFJ
> where ((CodEmp = 1 AND CodPFJ BETWEEN :CodPFJ1 and :CodPFJ2)
> and (TipPFJ = :in_TipPFJ))All for Open and Open for All
> order by CodPFJ
> into :field1, :field2, ... :TipPFJ, :CodPFJ
> DO
> suspend;
>end;
>
>Helen
InterBase Developer Initiative ยท http://www.interbase2000.org
_______________________________________________________