Getting or creating indexes for an unknown dBASE or Paradox database at runtime

In Delphi 2.0 I made a program that can open any database, and then get its
indexes and its contents. I think the code was GetIndexNames, but under
Delphi 3.0 this just doesn't work! I would allso appreciate if someone
would write me how to create maintained temporary indexes  (but I would
except tha code that saves the index in the database, too!) for dBASE
databases, and, if it's possible, for Paradox, too!

Thanks in advance, Gajo