How do you make records in the Lazarus IDE?? lazarus / 21-General ---------------------------------------------------------------------- OC DelGuy · 2021-01-31 04:52 I put in this code in a brand new program.  Of course, the TForm1 - Class(TForm) was actually already there and so was the private, public, end; var and Form1: TForm1; and  I haven't put anything in the Implementation nor have I put any objects on the form.  This is the only code I've added. 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 type  TForm1 = class(TForm)    person = record      fname, lname : string;    gender : char;      wage : real;    end;    private   public   end; var  Form1: TForm1;  employee : array[1..3] of person;  I compiled this and got the following error (first pic): Then, just for the heck of it, I changed the = to a : and I got this (second pic).  But I don't think that was right. So, how do I make Records in this IDE? ---------------------------------------------------------------------- egsuh · 2021-01-31 05:04 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 type    person = record      fname, lname : string;      gender : char;      wage : real;    end;   TForm1 = class(TForm)   private   public   end; ---------------------------------------------------------------------- PascalDragon · 2021-01-31 10:25 Quote from: OC DelGuy on January 31, 2021, 05:52:46 amI put in this code in a brand new program.  Of course, the TForm1 - Class(TForm) was actually already there and so was the private, public, end; var and Form1: TForm1; and  I haven't put anything in the Implementation nor have I put any objects on the form.  This is the only code I've added. You either need to declare your person record as part of a type section inside TForm1, but then you also need to use it as TForm1.person instead of just person for your employee variable or you need to declare it as part of the type section on unit scope like egsuh showed. For the former the code is like this (though I'd suggest to use the approach by egsuh): 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 type  TForm1 = class(TForm)  public type    person = record      fname, lname : string;      gender : char;      wage : real;    end;    private   public   end; var  Form1: TForm1;  employee : array[1..3] of TForm1.person;  Additionally I suggest you to take a look at the Language Reference Guide. ---------------------------------------------------------------------- OC DelGuy · 2021-01-31 20:12 Thanks, egsuh!  Wow!  I just had them Backwards!