>> Is there a function that Rezeros the elements of an array ?
>> fillchar(A,SizeOf(A[Low(A)])*Length(A),#0);
> That will not work if the array contains strings or any objects that need
> finalization.
True... It should only be used for primitive types that are not reference-
counted or allocat
That will not work if the array contains strings or any objects that need
finalization.
> Is there a function that Rezeros the elements of an array ?
fillchar(A,SizeOf(A[Low(A)]*Length(A),#0);
or something like that...
--
> Is there a function that Rezeros the elements of an array ?
fillchar(A,SizeOf(A[Low(A)]*Length(A),#0);
or something like that...
--
Aaron Scott-Boddendijk
Jump Productions
(07) 838-3371 Voice
(07) 838-3372 Fax
---
N
>> Is there a function that Rezeros the elements of an array ?
I don't think so but if it contains strings (for example)
TMyArray = array of String;
var
fMyArray: TMyArray;
...
for i := low(fMyArray) to high(fMyArray) do
fMyArray[i] := '';
JED
---
Is there a function that Rezeros the elements of an array ?
CAUTION - This message may contain privileged and confidential information intended
only for the
use of the addressee(s) named above. If you are not the intended recipient of this
message you are
hereby notified that any use, dis