Board index » delphi » Please help: higher table level needed

Please help: higher table level needed

Hi,
when my program is startet after a fresh installation on the customer's
computer it generates the whole database this way:
Creating the tables: ttable.createtable
Creating the indexes: tquery.sql.add('CREATE INDEX ...

That works perfectly as long as there was no older bde installed on the pc.
If it was, the entry in BDE Configuration:
Configuration/Diver/Native/Paradox/Level is set to '4', not '7'. This makes
my program crash when I try to generate a unique, not primary index with the
message: Cannot Create Index: Higher Table Level Needed

What can I do?
Can I create my tables somehow with level 7?
Or can I test and change the configuration entry inside my application?

Thanks in advance by any help!

Andreas Seebeck

 

Re:Please help: higher table level needed


I found it out!
Just have to set ttable.tablelevel to 7 before creating it.

Thanks,

Andreas

Quote
"Andreas Seebeck" <A...@febe.com> wrote in message

news:857dgf$sv02@bornews.borland.com...
Quote
> Hi,
> when my program is startet after a fresh installation on the customer's
> computer it generates the whole database this way:
> Creating the tables: ttable.createtable
> Creating the indexes: tquery.sql.add('CREATE INDEX ...

> That works perfectly as long as there was no older bde installed on the
pc.
> If it was, the entry in BDE Configuration:
> Configuration/Diver/Native/Paradox/Level is set to '4', not '7'. This
makes
> my program crash when I try to generate a unique, not primary index with
the
> message: Cannot Create Index: Higher Table Level Needed

> What can I do?
> Can I create my tables somehow with level 7?
> Or can I test and change the configuration entry inside my application?

> Thanks in advance by any help!

> Andreas Seebeck

Re:Please help: higher table level needed


Quote
>That works perfectly as long as there was no older bde installed on the pc.
>If it was, the entry in BDE Configuration:
>Configuration/Diver/Native/Paradox/Level is set to '4', not '7'. This makes
>my program crash when I try to generate a unique, not primary index with the
>message: Cannot Create Index: Higher Table Level Needed

>What can I do?
>Can I create my tables somehow with level 7?

Yes use the TableLevel property of the ttable to specify level 7 when you create
the table.

--
Brian Bushay (TeamB)
Bbus...@NMPLS.com

Other Threads