Einzelnen Beitrag anzeigen

Benutzerbild von DP News-Robot
DP News-Robot

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

No Access Violation For Me - Return a Property Value From a Nil Delphi Object

  Alt 31. Okt 2011, 10:20
in OOP in Delphi :: When a Delphi object type variable is nil, accessing any of the object properties would blow an access violation exception to the user. Sometimes you simply need nil objects to return some kind of a default value. Here's how to have an object return simple values even when it ...

More...
  Mit Zitat antworten Zitat