Is this what you're asking for?

  if Assigned(MyList) then
  begin
    // MyList is assigned
  end else
  begin
    // MyList is not assigned
  end;


-Andreas

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:owner-delphi@;delphi.org.nz]On
Behalf Of Mark Howard
Sent: Thursday, 14 November 2002 11:37
To: Multiple recipients of list delphi
Subject: [DUG]: Testing for existence of TStringList


Hi 

Sorry.  Basic question.

How do you test for the existence of a TStringList 
(for example) before reading from it - or do you just 
do a try...except?

Mark
---------------------------------------------------------------------------
    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