🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.ado
Article #5037

Re: Setting a TParameter to NULL

#5037
From: Harold Howe (TeamB)
Date: Sun, 05 Aug 2001 21:30
10 lines
1148 bytes
> ADO will not allow me to set this parameter to NULL.

Try setting TParameter.Value to System::Null.

ADOQuery1->Parameters->ParamByName("foo")->Value = System::Null.

Make sure that you use Null and not NULL. The two are very, very different.

Harold Howe [TeamB]
http://www.bcbdev.com
Technical Details
Message-ID: <3B6DBAFF.E54EC946@bcbdev.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!news.tele.dk!194.25.134.62!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews
References: <3b683e99$1_1@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,fd4a14ecd8537884
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2001-08-05 14:39:30 PST
Message-ID: <3B6DBAFF.E54EC946@bcbdev.com>
Date: Sun, 05 Aug 2001 16:30:39 -0500
From: "Harold Howe (TeamB)" <hhowe@bcbdev.com>
X-Mailer: Mozilla 4.03 [en] (WinNT; I)
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.database.ado
Subject: Re: Setting a TParameter to NULL
References: <3b683e99$1_1@dnews>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 24.22.227.236
X-Trace: dnews 997047027 24.22.227.236 (5 Aug 2001 14:30:27 -0700)
Lines: 10
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!news.tele.dk!194.25.134.62!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews