Re: [DUG]: Rezeroing Arrays

2000-08-17 Thread Aaron Scott-Boddendijk
>> 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

Re: [DUG]: Rezeroing Arrays

2000-08-17 Thread Dennis Chuah
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... --

Re: [DUG]: Rezeroing Arrays

2000-08-17 Thread Aaron Scott-Boddendijk
> 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

Re: [DUG]: Rezeroing Arrays

2000-08-16 Thread jnorth
>> 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 ---

[DUG]: Rezeroing Arrays

2000-08-16 Thread James Sugrue
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