Board index » delphi » Index no exists (DBase *.mdx)

Index no exists (DBase *.mdx)

I have a Table (DEMO.DBF) in DBase format with a Index in FIELD_A.
But the file DEMO.MDX has DELETED, and when open, display message Index file
not exists.

How can open a table (with Source in Run time) ?

Sorry my english

Miguel Morn
m...@adraperu.org.pe
Lima - PERU

 

Re:Index no exists (DBase *.mdx)


On Mon, 11 May 1998 15:48:53 -0000 David Miguel Morn Villarreyes
<m...@adraperu.org.pe> said:

--> How can open a table (with Source in Run time) ?
-->
Make sure that the Active property on all your TTable components is set
to false before you compile your Delphi application's exe file.

In your mainform's OnCreate event handler, check to see if the MDX file
exists.  If the file doesn't exist, set the TTable's IndexName property
to '', set the Exclusive property to True, and then execute the open
method.  Once you have the file openned, create the necessary tags for
the MDX file, close the file, set the IndexName property back to the MDX
name, and set the Exclusive property to False.  Then open the TTable
component as usual.
--
Jim Fitzgerald - ENVIROGENICS Software Company
Delphi/Visual dBASE/Clipper Development
email replies: chemmast at penn dot com

I hate spammers so send all spam to: ab...@iname.com
Support the anti-Spam amendment - Join at http://www.cauce.org/

Re:Index no exists (DBase *.mdx)


David,

Check the following URL for a solution:

http://www.inprise.com/devsupport/delphi/techdocs/tis/ti2711.html

Jim Stanley
Jacobs Engineering

Re:Index no exists (DBase *.mdx)


Quote
Jim Stanley wrote:

> David,

> Check the following URL for a solution:

> http://www.inprise.com/devsupport/delphi/techdocs/tis/ti2711.html

> Jim Stanley
> Jacobs Engineering

Hello,
  Or the "correct" BDE way is at:
http://www.inprise.com/devsupport/bde/bdeapiex/dbiregistercallback.html

  Scott
--
BDE Support:
 http://www.inprise.com/devsupport/bde
Delphi Support:
 http://www.inprise.com/devsupport/delphi
Common Delphi and BDE Questions and Answers:
 http://www.inprise.com/devsupport/delphi/qanda/

Other Threads