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

Reply via email to