Einzelnen Beitrag anzeigen

Benutzerbild von Jens Schumann
Jens Schumann

Registriert seit: 27. Apr 2003
Ort: Bad Honnef
1.644 Beiträge
 
Delphi 2009 Professional
 
#6

Re: Wird Variable.Free ausgeführt?

  Alt 18. Feb 2004, 09:58
Hallo,
an dieser Stelle ein kleiner Quiz:
Delphi-Quellcode:
var
  SL : TStringList;
begin
  SL:=TStringList.Create;
  Try
    If MyFunction then
      Exit;
    ...
  Finally
    SL.Free;
    end;
end;
Wird SL.Free ausgeführt, wenn MyFunction True zurückgibt ?
  Mit Zitat antworten Zitat