I've seen this a few times, never figured out why. I just ignore the
warning. Almost identical code may give a warning the other way around.

Dave.

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Corey Murtagh
Sent: Tuesday, 1 June 2004 8:01 a.m.
To: NZ Borland Developers Group - Delphi List
Subject: Re: [DUG] Weird Delphi Warning

Dennis Chuah wrote:

> Because the following line will exit from the function without 
> returning any values.
> 
> if (Prompt = '') and (CheckBox = '') then exit;

Alistair seems to be saying that having a line:

   Result := '';

...gives an error on the subsequent if, while not having that line slays the
error.  Sounds backwards to me :>

--
Corey Murtagh
The Electric Monk
"Quidquid latine dictum sit, altum viditur!"
_______________________________________________
Delphi mailing list
[EMAIL PROTECTED]
http://ns3.123.co.nz/mailman/listinfo/delphi


_______________________________________________
Delphi mailing list
[EMAIL PROTECTED]
http://ns3.123.co.nz/mailman/listinfo/delphi

Reply via email to