🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Null database field testing in Delphi 2005

#558
From: Johannes Bjerregaard
Date: Wed, 05 Jan 2005 17:19
14 lines
1321 bytes
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: <41dc21a6$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsgate.cistron.nl!feeder1.cambrium.nl!feeder2.cambrium.nl!feed.tweaknews.nl!216.196.110.149.MISMATCH!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
References: <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: "Johannes Bjerregaard" <jozzb@hotmail>
Subject: Re: Null database field testing in Delphi 2005
Newsgroups: borland.public.delphi.database.dotnet
References:  <41db6026$1@newsgroups.borland.com>
User-Agent: XanaNews/1.17.1.2
NNTP-Posting-Host: 66.140.110.1
Message-ID: <41dc21a6$1@newsgroups.borland.com>
Date: 5 Jan 2005 09:19:34 -0800
X-Trace: newsgroups.borland.com 1104945574 66.140.110.1 (5 Jan 2005 09:19:34 -0800)
Lines: 14
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsgate.cistron.nl!feeder1.cambrium.nl!feeder2.cambrium.nl!feed.tweaknews.nl!216.196.110.149.MISMATCH!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