This question may have come up before, but right now I have a
particular need to know the answer.
I have a situation/procedure on a form in a project where quite a
lot of data of different basic types needs to be temporarily stored, like
one would do with the Windows clipboard. In another procedure on the same
form this data must be read and used. So in past versions I had always
created an Object and used it dynamically when ever these procedures were
required. This time I decided to use a simple record type, as really all I
need to do with it is hold data, field definitions are quite adequate. I
was wondering however which method is less resource intensive over-all, and
would normally assume the record to be so except that I've been fooled into
assumptions like that before! The variable I use for this record of TMyrec
is global to the unit only, but still I make sure all fields are completely
empty, nul, or zero as the case may be in-between uses. Is there yet a
"cheaper" method to handling a situation like this, or perhaps a better
method of using the record or object so as to reduce its overall cost to the
system?
from Robert Meek dba Tangentals Design CCopyright 2006
Proud to be a moderator of "The Delphi Lists" at elists.org
"When I examine myself and my methods of thought, I come to the conclusion
that the gift of Fantasy has meant more to me then my talent for absorbing
positive knowledge!"
Albert Einstein
_______________________________________________
Delphi mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi