Compile error with forms lazarus / 31-LCL ---------------------------------------------------------------------- dietmar · 2021-09-26 17:01 Hi, on my main form, the following is working (f is a TForm): f.BoundsRect := Rect(0,0,ClientWidth, ClientHeight); on all other forms, this line results in the compile error "Syntax error, ")" expected but "," found" It seems that the compiler expects "Rect(0)"... I searched through my source code - no "Rect" function, variable or whatever found. What is going wrong here? Thx, --Dietmar ---------------------------------------------------------------------- Thaddy · 2021-09-26 18:36 At least on Windows, there are two rect() definitions. One in the Windows unit. Try changing unit order. ---------------------------------------------------------------------- dietmar · 2021-09-26 18:56 Jep, that made it... thx a lot! --Dietmar ---------------------------------------------------------------------- trev · 2021-09-26 23:35 Quote from: dietmar on September 26, 2021, 08:56:05 pmJep, that made it... thx a lot! Which solution did you use - jamie or Thaddy? ---------------------------------------------------------------------- dietmar · 2021-10-01 18:15 To be honest: The solution of Thaddy was absolutely sufficient --Dietmar