Subject Re: [IBO] Search with 2 Fields key !
Author Jason Wharton
I don't think I made it recognize two columns.

What does that you may do well to consider using is the Locate() method. As
long as you have the OrderingItems, OrderingLinks setup properly (Using the
POS attribute in the OrderingLinks) it will do an optimized search based on
more than one column. Just separate them with a semicolon and pass two
values into the array.

Ask more questions if after searching the help file and the archives doesn't
quickly get you up and running.

Jason

----- Original Message -----
From: "toninhonunes" <knowledge@...>
To: <IBObjects@yahoogroups.com>
Sent: Friday, July 11, 2003 2:07 PM
Subject: [IBO] Search with 2 Fields key !


> Hi,
>
> I'm using TIB_SearchEdit on each Form for search, my searchLinks also
> have only one field and it is works very well. But I have well Forms
> that have more of 1 field for search, How to do work the search with
> 2 key fields consecutives? for instance:
>
> SearchLinks:
> CODIGO_BANCO=CODIGO_BANCO
> CODIGO_AGENCIA=CODIGO_AGENCIA
>
> Form:
>
> IB_Edit_Banco ---> CODIGO_BANCO
> IB_SearchEdit_Agencia --> CODIGO_AGENCIA
>
> I've used on OnPrepare the property ParamValueLinks
> for "CODIGO_BANCO" and one TIB_SarchEdit for "CODIGO_AGENCIA" field
> in the Form. But the search doesn't work.
>
> Could someone help me?
>
> Thanks
>
> Toninho Nunes