🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.delphi.bazy-danych
Article #70341

Re: IBQuery błąd??

#70341
From: moxi
Date: Mon, 09 Jul 2007 11:24
21 lines
1603 bytes
> Odkryłem dzisiaj taką dziwną rzecz.
> Mam na formie IBQuery z np.
> SQL = 'Select * from KLIENCI where MIASTO_ID=:MIASTO'
> i robię tak:
> 
> ParamByName('MIASTO').AsInteger:=IdMiasta;   // IDMiasta: integer;
> Open;
> 
> I teraz RecordCount pokazuje 1 nawet w przypadku kiedy pytanie powinno 
> zwrócić np. 10 rekordów
> Chciałem zobaczyć co się dzieje i podpiąłem przez DataSeta Grida. 
> Okazało się ze wszystko pokazuje poprawnie i teraz RecordCount zwraca 
> poprawną liczbę, ale jak tylko choćby w DataGridzie zrobię 
> visible:=false to już RecordCount zwraca złą wartość.
> Co jest grane??


IBQuery1.FetchAll;
opis pod F1

pozdrawiam, moxi
Technical Details
Message-ID: <f6t68n$qmd$1@nemesis.news.tpi.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.rmf.pl!agh.edu.pl!news.agh.edu.pl!news.onet.pl!newsfeed.tpinternet.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mail
References: <f6t1jm$93h$1@atlantis.news.tpi.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.rmf.pl!agh.edu.pl!news.agh.edu.pl!news.onet.pl!newsfeed.tpinternet.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mail
From: moxi <spam@wyslij_do_kosza.pl>
Newsgroups: pl.comp.lang.delphi.bazy-danych
Subject: Re: IBQuery błąd??
Date: Mon, 09 Jul 2007 13:24:56 +0200
Organization: tp.internet - http://www.tpi.pl/
Lines: 21
Message-ID: <f6t68n$qmd$1@nemesis.news.tpi.pl>
References: <f6t1jm$93h$1@atlantis.news.tpi.pl>
NNTP-Posting-Host: btz129.neoplus.adsl.tpnet.pl
Mime-Version: 1.0
X-Trace: nemesis.news.tpi.pl 1183980631 27341 83.29.171.129 (9 Jul 2007 11:30:31 GMT)
X-Complaints-To: usenet@tpi.pl
NNTP-Posting-Date: Mon, 9 Jul 2007 11:30:31 +0000 (UTC)
User-Agent: Thunderbird 1.5.0.12 (Windows/20070509)
In-Reply-To: <f6t1jm$93h$1@atlantis.news.tpi.pl>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit