Article View: borland.public.delphi.database.dotnet
Article #137Problem with CurrencyManager.Count
From: Brigitte Spatz
Date: Tue, 17 Oct 2006 09:21
Date: Tue, 17 Oct 2006 09:21
29 lines
1783 bytes
1783 bytes
if (bm.Count < 0) then begin //bm is a CurrencyManager
dn_delete.Enabled := False;
dn_save_btn.Enabled := False;
dn_create_new.Enabled := False;
end;
The above runs successfully.
if (bm.Count < 0) then begin
dn_delete.Enabled := False;
dn_save_btn.Enabled := False;
dn_create_new.Enabled := False;
TabControl1.Enabled := False;
end;
This doesn't. It comes up with "no value at index 0." And so does
if (bm.Count < 0) then begin
dn_delete.Enabled := False;
dn_save_btn.Enabled := False;
dn_create_new.Enabled := False;
messagebox.show('blabla');
end;
I don't understand it. What's wrong here?
TIA.
Brigitte
Technical Details
Message-ID:
<4534a0ab@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 1effe6,b02f5a5d85e92193,start X-Google-Attributes: gid1effe6,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Tue, 17 Oct 2006 11:21:30 +0200 From: Brigitte Spatz <brigitteNOSPAM.spatz@svenmahn.de> Organization: Sven Mahn IT-Systementwicklungen User-Agent: Thunderbird 1.5.0.7 (Windows/20060909) MIME-Version: 1.0 Newsgroups: borland.public.delphi.database.dotnet Subject: Problem with CurrencyManager.Count Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Antivirus: avast! (VPS 0641-5, 16/10/2006), Outbound message X-Antivirus-Status: Clean NNTP-Posting-Host: 217.189.155.31 Message-ID: <4534a0ab@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1161076907 217.189.155.31 (17 Oct 2006 02:21:47 -0700) Lines: 29 Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail