Tech Tutorials Database
GeekArticles Programming Delphi
 

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

 
Author: delphi.about.com
Category: Delphi
Comments (0)

in <a in Delphi</i></a> :: <a /></a> 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. how to have an object return simple values even when it has not been assigned. <p>Read the <b>full article</b> to learn how to <b><a Check For Assigned - Ensure Your Nil Delphi Objects Return Property Values</a></b> <p><b>Related:</b> <ul NIL value and the Assigned RTL Function</a></li> <li><a class properties in (Win32) Delphi</a></li> <li><a Access Violations</a></li> </ul> <p 1px solid Access Violation For Me - Return a Property Value From a Nil Delphi Object</a> originally appeared on <a Delphi Programming</a> on Tuesday, December 15th, 2009 at 07:31:12.</p><p><a | <a | <a Access Violation For Me - Return a Property Value From a Nil Delphi this</a></p>

Read More...




Sponsored Links




Read Next: How to Hide the Tabs of the TPageControl Delphi control



 

 

Comments



Post Your Comment:

Your Name:*
e-mail ID:(required for notification)*
Image Verification: 
 
 Subscribe