Article View: borland.public.delphi.database.dotnet
Article #555Re: Null database field testing in Delphi 2005
From: Craig van Nieuwkerk
Date: Wed, 05 Jan 2005 05:50
Date: Wed, 05 Jan 2005 05:50
14 lines
1229 bytes
1229 bytes
In .NET you can use DBNull.Value > 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 > >
Technical Details
Message-ID:
<41db8027@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!newsread.com!news-xfer.newsread.com!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<41db6026$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: "Craig van Nieuwkerk" <craigvn@dart.net.au> Newsgroups: borland.public.delphi.database.dotnet References: <41db6026$1@newsgroups.borland.com> Subject: Re: Null database field testing in Delphi 2005 Date: Wed, 5 Jan 2005 16:50:31 +1100 Lines: 16 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 202.9.61.93 Message-ID: <41db8027@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1104904231 202.9.61.93 (4 Jan 2005 21:50:31 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!newsread.com!news-xfer.newsread.com!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail