Subject Re: [IBO] Focus TIB_EDIT when field is required.
Author Helen Borrie
At 02:10 PM 03-10-02 +0200, you wrote:
>Hi list
>
>I noticed that when the field has status 'required' and trying to save
>record with this kind of field left blank, after showing the error message
>the IB_Edit control linked to such a field gets focus. That's great
>behaviour!.
>But...
>I have a form where I use PageControl component due to large number of
>fields. Is there a way to catch this error and in the mean time switch to
>proper tabsheet where the ib_edit is placed to get this control focused.

Can you read the form's ActiveControl property and work through the Parent
hierarchy?

>Can I set the order that will be used when verifying required fields (i.e.
>first check this field, next that one and so on)?

I can't think of a way, other than to have the fields in your SQL in the
order you want; or perhaps reading them from the ColumnAttributes into an
ordered stringlist...

Helen