RX Components lazarus / 5-Lazarus Extra Components ---------------------------------------------------------------------- MSC · 2013-05-14 09:20 Hey, I actually try to install the rx libraries (rxnew) on my Lazarus installation. I got an error message in unit rxdbgrid in line 1423 saying "Error: Can´t take the address of constant expressions" ( Source: Dec(GCache.ClientHeight, DefaultRowHeight * FooterRowCount + 2). Any suggestions why this happens? On Windows XP installation works fine. My system: Windows 7 , 64 bit Lazarus 1.08 (32 bit) FPC 2.6.2 SVN 40573 i386-win32-win32/win64 regards ---------------------------------------------------------------------- marcov · 2013-05-14 13:42 Newer FPC's don't allow writing access to properties via a reference anymore. (which was necessary for inc()). This is Delphi compatible. Just replace  dec(something, y)  with   something:=something-y; and it will work fine. ---------------------------------------------------------------------- 99Percent · 2013-07-06 21:39 I ran into the same problem but marcov solution did not work. I changed the line: Code: [Select]Dec(GCache.ClientHeight, DefaultRowHeight * FooterRowCount + 2);toCode: [Select]AGCache.ClientHeight:=AGCache.ClientHeight-(DefaultRowHeight * FooterRowCount + 2); And compiled fine. Not sure if this particular component will continue working correctily though. Quote from: MSC on May 14, 2013, 11:20:50 amHey, I actually try to install the rx libraries (rxnew) on my Lazarus installation. I got an error message in unit rxdbgrid in line 1423 saying "Error: Can´t take the address of constant expressions" ( Source: Dec(GCache.ClientHeight, DefaultRowHeight * FooterRowCount + 2). Any suggestions why this happens? On Windows XP installation works fine. My system: Windows 7 , 64 bit Lazarus 1.08 (32 bit) FPC 2.6.2 SVN 40573 i386-win32-win32/win64 regards ---------------------------------------------------------------------- marcov · 2013-07-07 15:10 Quote from: 99Percent on July 06, 2013, 11:39:42 pmI ran into the same problem but marcov solution did not work. I changed the line: Code: [Select]Dec(GCache.ClientHeight, DefaultRowHeight * FooterRowCount + 2);toCode: [Select]AGCache.ClientHeight:=AGCache.ClientHeight-(DefaultRowHeight * FooterRowCount + 2); That is according to my suggest, and should remain working. Why do you think it is different?