• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 515
  • Last Modified:

MDX

What is MDX file ?

Is it the index file for the Paradox table ? If no, is there similar file for Paradox table ? If yes, how and when will it be created ?

Andrew
0
andrewyu
Asked:
andrewyu
  • 5
  • 3
  • 2
1 Solution
 
MatveyCommented:
As far as I remember it is an index file for XBASE (dBase). Like all index files it should be created when the user of the table creates indexes for the table.

If you want to know about it's format, goto www.wotsit.org and enter MDX in the search box.

http://loki.borland.com/winbin/bds.exe?getdoc+2821+Delphi
describes DBF and MDX.

http://www.e-bachmann.dk/docs/xbase.htm
another link to this file description.

http://www.wotsit.org/wdatabas/dbase.zip
http://www.wotsit.org/wdatabas/dbf.zip
Downloadable text.

Regards, bosism@netvision.net.il
0
 
andrewyuAuthor Commented:
So, is it related to Paradox !

Andrew

0
 
MatveyCommented:
I'm afraid not, but maybe some paradox engines create files with the same extention for it's indexes. Anyway, the only info I found about this was related to XBASE and not Paradox. I advice you to see the seccond link (http://www.e-bachmann.dk/docs/xbase.htm).

Regards, Matvey
0
Cloud Class® Course: CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

 
andrewyuAuthor Commented:
So, what is the file extension for index file of Paradox table ?
0
 
mayhewCommented:
Paradox and DBASE handle indexes differently.  In DBASE you can have several indexes and they are referenced in an mdx.  

In Paradox, you have a key which is your primary index that's kept in a .px file.  Then you can create secondary indexes.  For each secondary index you create, Paradox will generate a .xg? and .yg? file where the ? is a number that apparently indicates the order in which the indexes were created.

For example, if I create a Paradox table named TEST with a primary index and two secondary indexes, I will have the following files:
TEST.DB
TEST.PX
TEST.XG0
TEST.YG0
TEST.XG1
TEST.YG1

Hope this is helpful.
0
 
andrewyuAuthor Commented:
So, you meant that test.XG0 and test.YG0 is the files for the same secondary index ?
0
 
mayhewCommented:
That is my understanding, yes.

I created two tables (one in Paradox 7 and one in Paradox 4 for comparison's sake) and kept creating and deleting secondary indexes.  

For every index I created, an XG? and YG? were created.  When I deleted an index, both the xg and yg disappeared.
0
 
andrewyuAuthor Commented:
Thank you very much !

But, when and how do I use the property IndexFiles in TTable ?
0
 
MatveyCommented:
A dBASE MDX file can contain several indexes. You specify the IndexFiles property (used only for dBASE) to define the list of available index files, that will be opened and updated later if needed.
After a list of available index files is set, you can specify the IndexName property to set the current index that will determine the sorting and searching for your table.

IndexFiles can be also left blank, I think, if there is just one index file for the table. That file will be used by default and the IndexName combo-box will show indexes available from the file. (table name "MyTable.DBF" - index "MyTable.MDX)
0
 
andrewyuAuthor Commented:
Thank you very much !
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Introducing Cloud Class® training courses

Tech changes fast. You can learn faster. That’s why we’re bringing professional training courses to Experts Exchange. With a subscription, you can access all the Cloud Class® courses to expand your education, prep for certifications, and get top-notch instructions.

  • 5
  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now