Vote UpVote

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

About Delphi Programming – 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 has not been assigned. Read the full article to learn how to Don't Check For Assigned - Ensure Your Nil Delphi Objects Return Property Values Related: Understanding Delphi's NIL value and the Assigned RTL Function Simulating class properties in (Win32) Delphi On Access Violations No Access ...
Favorite? Off-Topic? 2011-10-31 03:00


Visits: 727
Votes: 2
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News


Please login or register to use this functionality.
(click on this box to dismiss)