If function returning boolean does not set returned value, would the result
be unpredictable or always FALSE. I assume it is unpredictable and use this
simple technique.
begin
result := false;
// do my stuff which may through exception
// in this case FALSE will be returned
// at the end of all
result := TRUE;
end;
This is fine to me but Delphi gives me a kind hint that Value assigned to
Result (first operator) never used. I do not like to see anything in my
output window.
???
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz