Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Index  already exists?

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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

828 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