If I write a function like this:

Function MyFunction(Value : Boolean) : Boolean;
Begin
  Result := Not Value;
End;

Now, if I go with the cursor on line Result := Not Value and select Refactoring->Complete code (the 1st option) the result is

Function MyFunction(Value : Boolean) : Boolean;
Var
  Result : Boolean;
Begin
  Result := Not Value;
End;

Note the Var statment.

Bye,
David
begin:vcard
fn:David Guadagnini
n:Guadagnini;David
email;internet:[EMAIL PROTECTED]
x-mozilla-html:FALSE
version:2.1
end:vcard

Reply via email to