Solved

Index  already exists?

Posted on 1998-09-29
1
555 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

685 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