Article View: borland.public.cppbuilder.database.ado
Article #4279Sort by IndexName in TADOTable
From: szumi
Date: Tue, 29 Jan 2002 08:54
Date: Tue, 29 Jan 2002 08:54
31 lines
1725 bytes
1725 bytes
Hi!
BCB5, database: MSAccess97
I needed sort records by IndexName, my code:
**************************************************
//collect indexnames
void __fastcall TLogWindow::ComboBox1Enter(TObject *Sender)
{
DM->Table->IndexDefs->Update();
DM->Table->GetIndexNames(ComboBox1->Items);
}
//set new indexname
void __fastcall TLogWindow::ComboBox1Change(TObject *Sender)
{
DM->Table->Active = false;
DM->Table->IndexName =
ComboBox1->Items->Strings[ComboBox1->ItemIndex];
DM->Table->Active = true;
}
******************************************************
but this don't working properlly :(
anythig change
where is the problem?
Regards
--
Jacek Szumigaj
Technical Details
Message-ID:
<3C56633C.A4DA48E9@kki.net.pl.no.spam>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!sfo2-feed1.news.digex.net!intermedia!news-hog.berkeley.edu!ucberkeley!nntp-relay.ihug.net!out.nntp.be!propagator-SanJose!in.nntp.be!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnewsShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10698b,11657af3e8cead52,start X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2002-01-29 00:57:46 PST Message-ID: <3C56633C.A4DA48E9@kki.net.pl.no.spam> Date: Tue, 29 Jan 2002 09:54:20 +0100 From: szumi <szujac@kki.net.pl.no.spam> Reply-To: szujac@kki.net.pl.no.spam X-Mailer: Mozilla 4.61 [en] (Win98; I) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.database.ado Subject: Sort by IndexName in TADOTable Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 217.197.160.239 X-Trace: dnews 1012294624 217.197.160.239 (29 Jan 2002 00:57:04 -0800) Lines: 31 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!sfo2-feed1.news.digex.net!intermedia!news-hog.berkeley.edu!ucberkeley!nntp-relay.ihug.net!out.nntp.be!propagator-SanJose!in.nntp.be!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews