Correct on all counts.

Beware of assignment of dynamic arrays. I forget the exact rules - check the
help - mind you  i have never found it to be an issue yet...
 
Myles.


-----Original Message-----
From: Alistair George [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 28 October 2003 21:07
To: Multiple recipients of list delphi
Subject: [DUG]: Clearing records


Hi all.
hope everyone is well!

Info please. I want to clear an array, but still have it available for later
use.

EG:
type PVtreeSearchList = ^TVtreeSearchList;
  TVtreeSearchList = record
    Filename, ZipName, PathName, Ftype, Fsize, DTime: string;
    Index: Cardinal;
  end;


var VtreeSearchList: array of TVtreeSearchList;


//to clear it
VtreeSearchList:=nil;

Is the above valid for reuse. And on form close, is it tidied up without
further
freeing?

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/

Reply via email to