🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.delphi.database.dotnet
Article #554

Null database field testing in Delphi 2005

#554
From: Ted Hale
Date: Wed, 05 Jan 2005 03:34
10 lines
1137 bytes
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: <41db6026$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!newsfeed.media.kyoto-u.ac.jp!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 1effe6,e4118755d1134eb5,start
X-Google-Attributes: gid1effe6,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Ted Hale" <thale@comcast.net>
Newsgroups: borland.public.delphi.database.dotnet
Subject: Null database field testing in Delphi 2005
Date: Tue, 4 Jan 2005 22:34:07 -0500
Lines: 12
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
NNTP-Posting-Host: 68.44.214.153
Message-ID: <41db6026$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1104896038 68.44.214.153 (4 Jan 2005 19:33:58 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!newsfeed.media.kyoto-u.ac.jp!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail