Subject Re: [IBO] IBOQuery: How to create TField for selected fields at runtime?
Author Daniel Rail
Hi,

At February 4, 2005, 14:14, Chuck Belanger wrote:
> What I'd like to do is assign OnGetText events at runtime to the various
> necessary fields to decrypt the field text.

> I got some wonderful help from someone recently here on how to add
> OnGet/SetText for the IB_query components, but how do I create a TField
> at runtime, so that I can assign the OnGetText then?

> I tried variations of Sender.FieldByName('field name').OnGetText :=
> <Name of Routine> but the program keeps sqwaking about the field isn't
> found or something like that.

When are you trying to assign the routine? And, could you post the
exact error message? It should normally work, but it might all depend
on when you are doing it.

--
Best regards,
Daniel Rail
Senior System Engineer
ACCRA Group Inc. (www.accra.ca)
ACCRA Med Software Inc. (www.filopto.com)