Thema: Delphi try..finally

Einzelnen Beitrag anzeigen

Benutzerbild von Binärbaum
Binärbaum

Registriert seit: 19. Jan 2005
Ort: Elstra
764 Beiträge
 
Delphi 7 Enterprise
 
#12

Re: try..finally

  Alt 10. Mär 2005, 19:31
[OT]
@FAlter:
Folgende Variante dürfte dann gemeint sein (unabhängig davon, wie man den Quelltext einrückt):
Delphi-Quellcode:
if a then //wenn a = true
  if b then //und b = true
    Anw1
  else //und b = false
    Anw2;
Für die andere Variante wird begin..end benötigt:
Delphi-Quellcode:
if a then begin//wenn a = true
  if b then//und b = true
    Anw1;
end
else//wenn a = false
  Anw2;
[/OT]

MfG
Binärbaum
There are exactly 10 kinds of people: those who understand binary, and those who don't.
---
"Software reift beim Kunden. Bei Hardware ist es anders: Hardware fault beim Kunden." - Rainer G. Spallek
  Mit Zitat antworten Zitat