Dynamic arrays of records
Help,
The section on dynamic arrays only shows using data types. Can you use
a dynamic array of a fixed length record without using something to
allocate and deallocate memory? Does it make a difference if one of the
items is a variable length string? Would using string[n] help?
Something = record
d1 : integer;
d2 : string; or string[48] if this helps.
d3 : double;
end;
...
...
private
things : array of something;
...
...
setlength(things,200);
Or would it be better to use the following and not have to worry about
memory allocation?
thingd1 : array of integer;
thingd2 : array of string;
thingd3 : array of double;
...
...
setlength(thingd1,200);
setlength(thingd2,200);
setlength(thingd3,200);
p.s. Does thingd2 take care of all of the memory related actions
required for the individual string variables?