Board index » delphi » How to create paradox table with BLOCK SIZE = 32768 in Delphi application

How to create paradox table with BLOCK SIZE = 32768 in Delphi application

Hi

I am writing a delphi application. I create a paradox table and
then I try to write a lot of records in it. But the block size value is smaller than i need so I can not write all the records.
I saw that it's possible to change the BLOCK SIZE in the Control Panel | Bde configuration but I prefer to do this in my application.
Have you any ideas!

GG

 

Re:How to create paradox table with BLOCK SIZE = 32768 in Delphi application


Quote
>I am writing a delphi application. I create a paradox table and
>then I try to write a lot of records in it. But the block size value is smaller than i need so I can not write all the records.
>I saw that it's possible to change the BLOCK SIZE in the Control Panel | Bde configuration but I prefer to do this in my application.

You can change BDE config parameters in code using
the BDE API method dbiopencfginfolist
http://www.borland.com/devsupport/bde/bdeapiex/dbiopencfginfolist.html

But you have to do this before any part of your application uses BDE in order
for the changes to take effect.  Generally this means you run the code out of
the Initialization section of your main form.

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

Other Threads