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