Error: Argument can't be assigned to lazarus / 13-General ---------------------------------------------------------------------- faber · 2008-12-02 10:54 Hi, after update fpc (2.3.1) and lazarus (x64 linux) I 've problems  :evil:  :evil: Canvas.TextStyle.Alignment:=taLeftJustify; this don't work ? When compile zlibar also problems with zlibar.pas(554,24) Error: Can't take the address of constant expressions with this code : fStream.Read(Header,SizeOf(TZlibArchiveHeader)); where Header is property  :?: ---------------------------------------------------------------------- Leledumbo · 2008-12-03 02:42 I've answered it in freepascal forum. ---------------------------------------------------------------------- faber · 2008-12-03 07:32 Thanks for your answer. I used private variable (fHeader) in zlibar and it's ok but what can I do with TStringGrid(Sender).Canvas.TextStyle.Alignment:=taLeftJustify  ? ---------------------------------------------------------------------- Leledumbo · 2008-12-03 09:56 Bad, but I hope it works: Code: [Select] var   Temp: TTextStyle; ...   Temp:=TStringGrid(Sender).Canvas.TextStyle;   Temp.Alignment:=taLeftJustify;   TStringGrid(Sender).Canvas.TextStyle:=Temp; ... The reason why it was implemented was actually obvious, but it makes programming harder. Some old post: http://www.mail- archive.com/lazarus@miraclec.com/msg15533.html ---------------------------------------------------------------------- faber · 2008-12-03 12:05 It isn't big problem to add one more record. THX