Solved

Storing object information

Posted on 1998-08-27
1
136 Views
Last Modified: 2010-04-04
Is there an easy way to store an objects properties in the registry, or in a file? I'm making an application where the user can select a standard font. How do I save information about the font without making an entry in the registry for each property? I would like to be able to do that to any object.
0
Comment
Question by:red_2
1 Comment
 
LVL 4

Accepted Solution

by:
itamar earned 100 total points
ID: 1337931
Hi red_2,

There is a shareware component just for that:

"... Auto re/store properties in file. TSaver component
     is designed to store some or all properties form a form and all containing
     components in text (standard INI) file. TSaver cares with automatic property
     storage in file when the form is closed and for (ver. 1.0, added 2/3/97, no
     src.) " :
     http://sunsite.icm.edu.pl/delphi/ftp/d20share/saver.zip

A free one:
"... WinSaver component help you to easily save
     windows' property in your own applicatoin (ver. 1.2, added 5/6/96)
          by Kuan-Da Chen":
     http://sunsite.icm.edu.pl/delphi/ftp/d20free/winsav12.zip

 
If you want to make it by yourself, take a look at thi:

"....Example of how to store a Component and its
     properties to a disk file or a Blob field (ver. 1.01, added 6/26/98)
     by Theodoros Bebekis :"
     http://sunsite.icm.edu.pl/delphi/ftp/d30free/saveprop.zip

IHTH,
Itamar
0

Featured Post

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

713 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question