The warning off needs to actually be in the FileCtrl unit, 
or it has to preceed your "unit xyz" line to be effective. Ie the first line
in the unit that uses the fileCtrl unit.

Myles.

-----Original Message-----
From: John [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 19 August 2003 14:40
To: Multiple recipients of list delphi
Subject: [DUG]: {$WARN UNIT_PLATFORM OFF}


When I include {$WARN UNIT_PLATFORM OFF} in my source (or project) it still
produces warnings, like:

"Symbol Unit 'FileCtrl' is specific to platform"
"Symbol 'faArchive' is specific to platform"

The lines in question read:


    uses  FileCtrl;

and

    findFirst( sFile, faArchive, sRec );



Q1. Why can't I suppress the warning on line "uses FileCtrl"

Q2. Why is warning #2 gone when I prefix with SysUtils as below:

    findFirst( sFile, SysUtils.faArchive, sRec );


Any ideas?

John

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