Subject Re: [IBO] TIB_DataSource.onDataChange
Author Marco Lauria
At 10.01 25/12/2003 +0000, you wrote:
>Hello,
>
>I would like to use the Field (TIB_Column) variable in this event.
>
>I try to check the contents of one data-field only, but if I try to
>do something like :
>
>if Field.FieldName='myField' then ....
>
>there is allways an access violation in IBO40CRT_D7.BPL
>
>Am I doing something wrong, or forbidden?

you should first check if field is null
if ( (Field <> nil) and (Field.FieldName = 'myField') ) then ....

Regards
Marco