Subject Re: [IBO] TIB_SearchPanel
Author Marco Lauria
At 18.43 29/11/2001 +0100, you wrote:
>hello all,
>is there any way to directly access the edit boxes (or their values)
>contained into a search panel ? I'd like to make the search process a
>little easy for the end user via some radio buttons and a check box.
>The check box should be "Exact search" and in this case nothing is
>done with the values in the search panel. Instead, if I uncheck this
>control, two radio buttons become enabled:
>"Starting with"
>Depending on which of the two radio buttons is selected, I want to
>programmatically add the necessary % signs to the edit box values in
>the right places before starting search process. So I need to access
>the edit box values...
>Any clue ?

To add components to the search panel, you need to add them at run time.
As Far As I Know Jason doesn't stream components you insert in the panel at
design time.
To access the values, simply while you are in search mode access the fields
using FieldByName("Pippo")->AsString or in delphi
For the starting with or containing, you can use the YES LIKE column attribute.
If you check it, during searches IBO will use the LIKE clause instead of
the equal.