Hi, thanks for reply back.
That code part was an example that is intented to understand
encapsulation. EncodeDate method was used in an inner method in the class.
I asked that because there is a problem that I cannot access a member of
an object and wondered why I can't access it.
TheDay is declared in the private area of class.
Thanks Lee.
Lee Jenkins yazmış:
Sönmez Kartal wrote:
Hello,
I am new to Lazarus. I have a book named Mastering Delphi 7 by Marco
Cantu. I got an error when I tried to compile an example.
procedure TDateForm.FormCreate(Sender: TObject);
begin
TheDay := TDate.Create();
TheDay.SetValue(2007,1,13);
end;
What not something like this?
procedure TDateForm.FormCreate(sender: TObject);
begin
TheDay := EncodeDate(2007,1,13);
end;
This is assuming that the "TheDay" var is declared in the form where it
is accessible.
This may help as well:
http://www.taoyue.com/tutorials/pascal/contents.html
http://packetstormsecurity.nl/programming-tutorials/Pascal/pascal-tutorial/paslist.htm
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives