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
