🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

INDEX PROBLEM

#3684
From: G�khan �ATALKAYA
Date: Fri, 05 Jul 2002 07:18
39 lines
1712 bytes
Hi;

I have created an index on a paradox 7.0 table named teminat_tbl with the
following command.

create index index1 on teminat_tbl (term_no)

And I have the following code to sort the table to the term_no

Table1->Active = false;

Table1->IndexDefs->Update();

for (int i = 0; i < Table1->IndexDefs->Count; i++)
  if (Table1->IndexDefs->Items[i]->Fields == AnsiString("TERM_NO"))
  {
        Table1->IndexName = Table1->IndexDefs->Items[i]->Name;
    break;
  }

Table1->Active = true;


Everything is OK in Compile Time But i have taken an error message in run
time like

Project raised exception class EDBEngine Error with message 'index is read
only'. Process stop. Use Step or Run to Continue.


Do yu think what causes the problem, and hhow can i overcome it?

Thank you.




--
G�khan �ATALKAYA
Technical Details
Message-ID: <3d254849_1@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!supernews.com!news.maxwell.syr.edu!news-out.nuthinbutnews.com!propagator-sterling!news-in.nuthinbutnews.com!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 10698b,f4b2f307d9aae5e9,start
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2002-07-05 00:33:17 PST
From: "G�khan �ATALKAYA" <gcatalkaya@ttnet.net.tr>
Newsgroups: borland.public.cppbuilder.database.ado
Subject: INDEX PROBLEM
Date: Fri, 5 Jul 2002 10:18:33 +0300
Lines: 45
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
NNTP-Posting-Host: 195.175.217.179
Message-ID: <3d254849_1@dnews>
X-Trace: dnews 1025853513 195.175.217.179 (5 Jul 2002 00:18:33 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!supernews.com!news.maxwell.syr.edu!news-out.nuthinbutnews.com!propagator-sterling!news-in.nuthinbutnews.com!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews