Einzelnen Beitrag anzeigen

Benutzerbild von DP News-Robot
DP News-Robot

Registriert seit: 4. Jun 2010
15.007 Beiträge
 
#1

How to write try finally blocks

  Alt 24. Nov 2023, 15:30
I recently came across code another developer had done and they write try..finally blocks like the following:


procedure TSomeClass.DoSomething: string;
<span style="font-family: courier;">var
myClass: TMyClass;
begin
<span> myClass := nil;
try
myClass := TMyClass.Create;
<span> &n

Weiterlesen...
  Mit Zitat antworten Zitat