Just ignore that particular warning, as I can't see any reason for it. As I
say, almost identical code (i.e. Result defined similarly) doesn't produce
the warning. I never allow other hints or warnings to remain. Just that one
makes no sense and seems random.

Dave. 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of [EMAIL PROTECTED]
Sent: Tuesday, 1 June 2004 8:29 a.m.
To: [EMAIL PROTECTED]
Subject: RE: [DUG] Weird Delphi Warning

Do you explicitly ignore that specific warning or just ignore the compiler
warning list?

We won't let our developers check in code with hints or warnings...

WRT Alistair's original problem, I can't reproduce it with a simple test.
Care to post the whole function, Al?

Cheers,

Conor

-----Original Message-----
From: David O'Brien [mailto:[EMAIL PROTECTED] 

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.

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Corey Murtagh

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

_______________________________________________
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