Article View: borland.public.delphi.database.dotnet
Article #559Re: Null database field testing in Delphi 2005
From: Ted Hale
Date: Wed, 05 Jan 2005 18:19
Date: Wed, 05 Jan 2005 18:19
20 lines
1572 bytes
1572 bytes
Worked perfectly! Ted "Johannes Bjerregaard" <jozzb@hotmail> wrote in message news:41dc21a6$1@newsgroups.borland.com... > Ted Hale wrote: > >> In Delphi 5 I would test for a Null value in a database field using: >> >> if (dataSet['dataField'] = Null) then >> do something; >> >> This worked fine. In Delphi 2005 the compiler reports 'Null' is an >> undeclared identifier. Can anyone tell me what replaces this in >> 2005? Thanks for any help. >> >> Ted > > Add Variants to the uses clause of the units where you use Null.
Technical Details
Message-ID:
<41dc2f9e$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!fr.ip.ndsoftware.net!border2.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<41db6026$1@newsgroups.borland.com> <41dc21a6$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 1effe6,e4118755d1134eb5 X-Google-Attributes: gid1effe6,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Ted Hale" <thale@comcast.net> Newsgroups: borland.public.delphi.database.dotnet References: <41db6026$1@newsgroups.borland.com> <41dc21a6$1@newsgroups.borland.com> Subject: Re: Null database field testing in Delphi 2005 Date: Wed, 5 Jan 2005 13:19:10 -0500 Lines: 22 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2527 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527 X-RFC2646: Format=Flowed; Original NNTP-Posting-Host: 68.44.214.153 Message-ID: <41dc2f9e$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1104949150 68.44.214.153 (5 Jan 2005 10:19:10 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!fr.ip.ndsoftware.net!border2.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail