<div dir="ltr">2016-02-18 8:00 GMT-02:00 leledumbo <span dir="ltr"><<a href="mailto:leledumbo_cool@yahoo.co.id" target="_blank">leledumbo_cool@yahoo.co.id</a>></span>:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="">> What do you think about it? Is there any other solution?<br>
<br>
</span>There's a reason why<br>
<a href="http://www.freepascal.org/docs-html/3.0.0/fcl/db/tfield.isnull.html" rel="noreferrer" target="_blank">http://www.freepascal.org/docs-html/3.0.0/fcl/db/tfield.isnull.html</a> is<br>
invented<br><br></blockquote><br></div><div class="gmail_quote">You didnt understand my point. Design classes coupled with DB framework is not a solution. <br><br>In the following class<br><br><br></div><div class="gmail_quote"><span style="font-family:comic sans ms,sans-serif">type<br></span></div><div class="gmail_quote"><span style="font-family:comic sans ms,sans-serif">   TPerson = class(TObject)<br></span></div><div class="gmail_quote"><span style="font-family:comic sans ms,sans-serif">   private<br>      </span><span style="font-family:comic sans ms,sans-serif"><span style="font-family:comic sans ms,sans-serif">FId: Integer;</span> <br>    </span><span style="font-family:comic sans ms,sans-serif"><span style="font-family:comic sans ms,sans-serif"></span><span style="font-family:comic sans ms,sans-serif">  FName: String;</span>     <br>      FBirthDate: TDateTime;     </span><span style="font-family:comic sans ms,sans-serif"><br></span></div><div class="gmail_quote"><span style="font-family:comic sans ms,sans-serif">   public<br></span></div><div class="gmail_quote"><span style="font-family:comic sans ms,sans-serif">      property Id: Integer read FId write FId; <br></span></div><div class="gmail_quote"><span style="font-family:comic sans ms,sans-serif">      property Name: String read FName write FName;<br></span></div><div class="gmail_quote"><span style="font-family:comic sans ms,sans-serif">      property BirthDate: TDateTime read FBirthDate write FBirthDate;<br></span></div><div class="gmail_quote"><span style="font-family:comic sans ms,sans-serif">   end;</span><br></div><div class="gmail_quote"><div><br><br></div><div>Suppose that this class represent data of the Person table in a sql database. Suppose that there is records where the column "BirthDate" is null. How do i represent a null "BirthDate" in my object? <br><br></div><div>Regards<br></div><div><br></div></div></div></div>