Subject Re: [IBO] Accessing Field Contents
Author Helen Borrie
Hi Nando et al,

At 07:21 AM 24/09/2003 +0200, you wrote:
>Helen et al,
>
>H> MyIBOQuery.FieldByName(MyGrid.SelectedField.FieldName).PropertyOrMethod
>
>MyGrid.SelectedField.PropertyOrMethod should be equivalent.

Good point, if you are using IDE-instantiated field objects; but I think
there might be problems if late binding is being used (as IBO programmers
often do, to avoid redundant fat). It's a good fallback in that case to
take the "longer road" with VCL-to-Dataset references, to avoid getting AVs
on these calls.

>Better test if SelectedField is assigned, anyway.

Absolument!

Helen