Solved

Index  already exists?

Posted on 1998-09-29
1
550 Views
Last Modified: 2010-04-06
Is it possible to tell if a secondary index already exists in a paradox table?
0
Comment
Question by:JohnE
1 Comment
 
LVL 2

Accepted Solution

by:
kjteng earned 50 total points
ID: 1341235
TTable component has a property called IndexDefs which gives the details of all the indexes relating to an active table.
Try the following code and you will know what I mean:

 for i:= 0 to (Table1.IndexDefs.Count -1) do
    ShowMessage(Table1.IndexDefs.Items[i].Fields)

Apart from Fields property which give you the names of the index field, there are other info such as index name, expression etc. Please check the Delphi help for more details
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now