Board index » delphi » Looking for non-visual BDE alternatives !!!!

Looking for non-visual BDE alternatives !!!!

I want to have access to a database but without the overhead (in size of
executable) of having to use forms. For instance the use of a DLL ? Because at
the moment TTable etc are visual components that need to be placed on a form.

I still need the ability to find, create. delete and read records but I don't
have to display them on the screen.

Any suggestion ???

Thanks

Nigel
n.po...@gmg.com.au

 

Re:Looking for non-visual BDE alternatives !!!!


Quote
n.po...@gmg.com.au (Nigel Poole) wrote:
>I want to have access to a database but without the overhead (in size of
>executable) of having to use forms. For instance the use of a DLL ? Because at
>the moment TTable etc are visual components that need to be placed on a form.

>I still need the ability to find, create. delete and read records but I don't
>have to display them on the screen.

>Any suggestion ???

You could create the TTable dynamically as part of the initialization,
making the Apllication itself parent, I guess.

The other way would be direct BDE-calls. Take a look at the BDE
help-file: there are lots of functions doing just what you want.

Good luck.

Jasper

PS: please take into consideration
- when replying, I just think I know;
- when asking, be sure that I don't.

Re:Looking for non-visual BDE alternatives !!!!


Quote
n.po...@gmg.com.au (Nigel Poole) wrote:
>I want to have access to a database but without the overhead (in size of
>executable) of having to use forms. For instance the use of a DLL ? Because at
>the moment TTable etc are visual components that need to be placed on a form.
>I still need the ability to find, create. delete and read records but I don't
>have to display them on the screen.
>Any suggestion ???
>Thanks
>Nigel
>n.po...@gmg.com.au

Hi!

The TTable components do not need a form.

A Example:

PROGRAM Test;

USES DB,DbTables;

var
     t : TTable;

BEGIN
  t := TTable.Create(NIL);
  t.databaseName := 'DEMO';
 t.tablename := 'TABLE1.DB';
 t.open;

{ now you can use the TTable object with all Functions }
{ Fields are accessed with the .FieldByName('NAME'). Property. }

 t.close;
 t.free;
END.

Hope that helps...

Robert NOeth
(RNo...@t-online.de)

PS.: Excuse my bad English.

Other Threads