Calling from procedure lazarus / 61-Beginners ---------------------------------------------------------------------- Cranky · 2017-04-28 22:54 Hello, please I need help. Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i unit Unit1; {$mode objfpc}{$H+} interface uses  Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, ExtCtrls,  StdCtrls; type   { TForm1 }   TForm1 = class(TForm)    Label1: TLabel;    Timer1: TTimer;       etc...  I need to access Timer1 from my procedure Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i procedure simMain; begin   TTimer.Enabled:=true; end;  but I am getting error: unit1.pas(70,4) Error: Identifier not found "Timer1" Thanks for all replies ---------------------------------------------------------------------- Josh · 2017-04-28 23:33 Hi You have named your 'TTimer'  Timer1 and it is  part of the Form1 To access the timer call it by it's name ie Timer1.enabled:=false; Your procedure does not look to be part of the form , so to call it in this procedure you will also have to tell it where the timer1 is ie procedure dosomething; begin   Form1.Timer1.enabled:=false; end; ---------------------------------------------------------------------- Cranky · 2017-04-29 06:28 Great it works, thank you