Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Should i use TClientDataSet for this? 1

Status
Not open for further replies.

simmo09

Programmer
Apr 22, 2009
82
GB
Hi, first off ive never used the TClientDataSet component, which is partially why im asking here.

What i want to do is store resources and memo type information in my program, without the need of external files, and be able to open these in-memory files on the fly.

does anyone have any good examples of this component, i want to achieve something similar as to how game maker works if anyone has used that before.

as you can see in this picture: , data seems to be stored in memory (at least i think it is), and can be recalled accurately when needed. Each object in the tree to the left has events, these events hold the information - what im confused is how the information is stored and reloaded.

I hope this makes sense, i should also say im not trying to replicate this program, the program i want to make is a resources program which can store code snippets, images and sounds etc.

If someone could help me identify which logic is used and i can work off it, the only in-memory type component ive read about is the ClientDataSet.

Thanks!
 
I would not use TClientDataSet for this purpose.

just make some custom object (derive from TObject) and put it on a TObjectList (look at the Contnrs unit).
if you want to make a persistent object (store properties etc...) derive from TPersistent or TComponent.

if you don't have a clue what I'm talking about, start reading here (or any Marco Cantu delphi book will do the job):


/Daddy



-----------------------------------------------------
What You See Is What You Get
Never underestimate tha powah of tha google!
 
OK thanks, i also thought maybe streams, will check your link out thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top