Solved

Index  already exists?

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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
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…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

786 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