Recent

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

Josh

  • Hero Member
  • *****
  • Posts: 1344
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

The best way to get accurate information on the forum is to post something wrong and wait for corrections.

 

TinyPortal © 2005-2018