Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 3 of 3 total
Thread Can .EDBCfg be created using Delphi code?
Wed, Aug 26 2009 12:05 AMPermanent Link

Brent
This is a newbie question, so please bear with me.

Can the .EDBCfg file be created using just Delphi code? Or is it always created by the EDB
Mgr?
The reason I ask is I will be building a database from scratch on the user's machine and
would prefer if I could create all the tables using code. If not, then would the
alternative be to create an empty .EDBCfg file using the EDB Mgr on my machine and just
copy that file to the user's machine then have my Delphi code reference that .EDBCfg file
before I build the tables?

TIA
Brent
Wed, Aug 26 2009 3:42 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Brent


Providing you do it properly the configuration file will be created automatically. I think its when you open the session.

Roy Lambert [Team Elevate]

Wed, Aug 26 2009 11:30 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Brent,

<< Can the .EDBCfg file be created using just Delphi code? Or is it always
created by the EDB Mgr? >>

It is automatically created if it doesn't exist when the first session that
attempts to access it finds it missing.  The same is true with the database
catalog file and with the table files.  ElevateDB is made to automatically
cope with missing files and revert to the default, empty version of the
object that is contained in a file.  In the case of a configuration file,
the default configuration is assumed, in the case of a database catalog
file, an empty (no tables, views, etc.) database is assumed, and in the case
of the table files, an empty (no rows) table is assumed.

<< The reason I ask is I will be building a database from scratch on the
user's machine and would prefer if I could create all the tables using code.
If not, then would the alternative be to create an empty .EDBCfg file using
the EDB Mgr on my machine and just copy that file to the user's machine then
have my Delphi code reference that .EDBCfg file
before I build the tables? >>

See the CDCollector example application and demo apps that come with
ElevateDB.  They all create their databases from scratch and use the main
application directory as the configuration file path.

--
Tim Young
Elevate Software
www.elevatesoft.com

Image