Recent

Author Topic: Lazarus RC3 for Carbon getting Range error.  (Read 958 times)

josh

  • Hero Member
  • *****
  • Posts: 745
Lazarus RC3 for Carbon getting Range error.
« on: December 27, 2018, 09:08:00 pm »
Hi

function TForm1.has_focus:boolean;
begin
  result:=screen.ActiveForm.Name='Form1';
end;

The above gives a range check error in the result line.
Same code works on cocoa and window

Development Installation Lazarus 1.3, FPC 2.7.1,Windows 7/8 32/64, OSX, *nix

Test Environment Lazarus & FPC Trunk on Windows and OSX (Cocoa Mainly on OSX). Testing also Crosscompile windows to OSX.. 
Any posts made from 2015 will be based on Lazarus Trunk.