I tend to avoid the registry like plague. It is slow, has all sorts of permissions issues and is not suitable for storing larger amounts of data (you can run out of registry storage space). Also I find too many programs stuff keys in the registry, bloating it up and making it unmanageable. That is why there is so many "registry clean-up" programs out there.


I prefer to use Delphi class streaming (as used by Delphi to stream dfm files) to store data. Keep your configuration info in a TPersistent class, and make sure all properties you want to store are in the published section. I prefer to save as text (use ObjectBinaryToText and ObjectTextToBinary) because you can load the text file into a simple text editor and modify it - useful if you need to support clients.

Secure data can be encrypted - see TurboPower Lockbox in SourceForge for an open-sourced data encryption library.

Dennis.

From: "Chris Veale" <[EMAIL PROTECTED]>
Hi.

I just thought that if I am going to be having to process these regularly,
would it be better to store information in the system registry?  there is
going to be lots of data, but I know tregistry replaces the old 16 bit
tinifile.

would this be an option if I have about 5000 lines of variables I want to
retain?

plus the same number for approximately 20 other files I need to reference,
or is this complete overkill?

I have never played around with the registry before and Im not sure of the
load or proper procedure for doing something like this.

essentially the files I'm referencing are lookup files that, when the user
selects a certain combination of variables in the program, we graph the vars
read in from the file.


Hope that makes sence.

Chris

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.502 / Virus Database: 300 - Release Date: 18/07/03




______________________________________________________ The contents of this e-mail are privileged and/or confidential to the named recipient and are not to be used by any other person and/or organisation. If you have received this e-mail in error, please notify the sender and delete all material pertaining to this e-mail. ______________________________________________________ --------------------------------------------------------------------------- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of "unsubscribe delphi" Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/

_________________________________________________________________
Surf the net and talk on the phone with Xtra Jetstream @ http://www.xtra.co.nz/products/0,,5803,00.html !


---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/

Reply via email to