I just checked the sources and there is no TDate class available in
FPC/Lazarus, and I doubt (as Joost did) that Delphi has it but I'm not
shure.
You never actually mentioned what exact error message you get. Can you post
it here?
Darius
----- Original Message -----
From: "Sönmez Kartal" <[EMAIL PROTECTED]>
To: <lazarus@miraclec.com>
Sent: Saturday, January 13, 2007 4:03 PM
Subject: Re: [lazarus] illegal qualifier problem arose to a newbie
Hi,
Yeah, I forgot to write it. TheDay is a field in the form class. Anyway,
this doesn't matter.
I wondered about why I cannot assign an object or access a field. But,
Delphi code from the book's source is compiled well. I will lookup that
pages Lee sent links before you.
Thanks, Joost.
Joost van der Sluis yazmış:
On Sat, 2007-01-13 at 14:24 +0200, 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;
Well, this won't compile in Delphi either. First of all you'll need to
define the TheDay variable. Secondly, I don't know any object-type (so
that you can call it's constructor create) which is called TDate.
So probably Marco Cantu has defined his own class TDate, and defined a
variable TheDay somewhere. (Probably somewhere in TDateForm?)
Joost
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives