Article View: borland.public.cppbuilder.database.ado
Article #4282Re: Sort by IndexName in TADOTable
From: AdoAnywhere Team
Date: Wed, 30 Jan 2002 01:19
Date: Wed, 30 Jan 2002 01:19
46 lines
2251 bytes
2251 bytes
Upgrade.You need Jet4, Access2000 for IndexNames to work.
If you only want to sort then use the sort method instead.
Mike
--
Michael Collier Bsc (Hons) Comp Sci
ADO Support Tools.
Fully Working 15-Day Trial...
http://www.adoanywhere.com/download/aaBrowse2_7.zip
Home Page
http://www.adoanywhere.com
"szumi" <szujac@kki.net.pl.no.spam> wrote in message
news:3C56633C.A4DA48E9@kki.net.pl.no.spam...
> 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:
<3c574993$1_1@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!news.tele.dk!small.news.tele.dk!128.230.129.106!news.maxwell.syr.edu!newsfeed.frii.com!out.nntp.be!propagator-SanJose!in.nntp.be!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnewsReferences:
<3C56633C.A4DA48E9@kki.net.pl.no.spam>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10698b,11657af3e8cead52 X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2002-01-29 17:19:42 PST Reply-To: "AdoAnywhere Team" <mike@adoanywhere.com> From: "AdoAnywhere Team" <mike@adoanywhere.com> Newsgroups: borland.public.cppbuilder.database.ado References: <3C56633C.A4DA48E9@kki.net.pl.no.spam> Subject: Re: Sort by IndexName in TADOTable Date: Wed, 30 Jan 2002 01:19:02 -0000 Lines: 48 Organization: www.adoAnywhere.com X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 NNTP-Posting-Host: 217.72.165.101 Message-ID: <3c574993$1_1@dnews> X-Trace: dnews 1012353427 217.72.165.101 (29 Jan 2002 17:17:07 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!news.tele.dk!small.news.tele.dk!128.230.129.106!news.maxwell.syr.edu!newsfeed.frii.com!out.nntp.be!propagator-SanJose!in.nntp.be!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews