Subject RE: [IBO] How to put NULL to a field?
Author Alan McDonald
Raymond - how are you creating persistent TFields with IB_ (IB native)
datasets?
Alan

-----Original Message-----
From: Raymond Kennington [mailto:progsol@...]
Sent: Sunday, 29 December 2002 9:00 PM
To: IBObjects@yahoogroups.com
Subject: Re: [IBO] How to put NULL to a field?


"pepmallorca " wrote:
>
> Hello:
>
> Here is a simple question:
>
> I have a numeric field and I want to give it the NULL value.
>
> For example, I write:
>
> IB_QryXXX.FieldByName('FIELD').AsInteger:=null;

Use TFields.

IB_QryXXXFIELD.Value := NULL;

>
> But the error is:
>
> Invalid variant type conversion
>
> Thank you,

--
Raymond Kennington
Programming Solutions
W2W Team B


___________________________________________________________________________
IB Objects - direct, complete, custom connectivity to Firebird or InterBase
without the need for BDE, ODBC or any other layer.
___________________________________________________________________________
http://www.ibobjects.com - your IBO community resource for Tech Info papers,
keyword-searchable FAQ, community code contributions and more !

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/