Title: Message
|
I see. That makes sense. I guess I
could have organised it so that the records were created with New() and
stored the memory pointers in an array. I never quite thought of
doing that.
So an array of string[1..10] would store the
strings themselves in the array, as apposed to a dynamic string. I've got
it.
Cheers, Ross.
----- Original Message -----
Sent: Thursday, June 03, 2004 6:08
PM
Subject: RE: [DUG] "IN" an array?
But
that's an array of records. That is different from a string, which is
dynamic. A string is always a pointer to the memory that actually holds
the string, and that pointer changes were it points if you change the contents
of the string (because the string gets reallocated). A record is by comparison
static. I believe an array of records is actually an array of the record
memory, rather than an array of pointers to the records.
David.
|
_______________________________________________
Delphi mailing list
[EMAIL PROTECTED]
http://ns3.123.co.nz/mailman/listinfo/delphi