Yeah, I second this.  Your needs are simple and the dataset small.  Just use
what Borland (er, CodeGear) gives you free: TClientDataSet.  You can define
all the field defs at design-time, then right click and save the dataset to
a file.  Once that is created, just load it at run-time and use it in
memory.  Create indexes on the fly and treat it like any other dataset--very
handy!   The default format is its own native binary format, but you can
also save it as XML.  There's lots of documentation around, but you'll have
to Google it to get all the articles and understand it well.
 
Then you can say "Good-bye" to the BDE (and hello to MIDAS.DLL).
 
David Cornelius
Cornelius Concepts, Inc.
http://corneliusconcepts.com <http://corneliusconcepts.com/> 
Software Development, Databases, Websites
 


  _____  

From: Smith David G (Finance) [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 31, 2007 11:09 AM
To: [email protected]
Subject: RE: [delphi-en] Better than dBase (.dbf)



I believe you can use TClientDataSet to create an in-memory database
that can be saved to disk. I haven't ever used it myself, though. 

-----Original Message-----
From: [EMAIL PROTECTED] <mailto:delphi-en%40yahoogroups.com> ps.com
[mailto:[EMAIL PROTECTED] <mailto:delphi-en%40yahoogroups.com> ps.com] On
Behalf Of Fred
Sent: Thursday, May 31, 2007 1:56 PM
To: [EMAIL PROTECTED] <mailto:delphi-en%40yahoogroups.com> ps.com
Subject: [delphi-en] Better than dBase (.dbf)

Hi All,

Questions:
1. What is the best database to use in the following application? 
2. Could I put the database in RAM memory so the hard drive won't be
busy?

Application:
I build free submarine simulator software for teachers to teach math
and science to children. They perform scientific and humanitarian
missions only! 
The database is dBase (.dbf) with 40 records (20k bytes) which hold the
location, speed, depth, course, ... for each contact (ships, 
submarines, whales, navigarional aids, ...) The master math engine 
(on CPU 1) updates data once every second, and other CPU's (Radar,
Sonar, Ships, Submarines, Aircraft, ...) read the data once every 2 to 8
seconds. I can hear CPU 1 hard drive being very busy. I use Delphi 5
and 2006. I suspect there is a better database for my application than
dBase!
Any thoughts!

-----------------------------------------------------
Home page: http://groups. <http://groups.yahoo.com/group/delphi-en/>
yahoo.com/group/delphi-en/
To unsubscribe: delphi-en-unsubscri
<mailto:delphi-en-unsubscribe%40yahoogroups.com> [EMAIL PROTECTED]
Yahoo! Groups Links



 


[Non-text portions of this message have been removed]

Reply via email to