Hi
Long time ago i used to code using Delphi. Now i'm trying with Lazarus. How can I add record to a Tlist and read from Tlist record - i can not find out how to do it in Lazarus.
Example in Delphi:
type
pls=^tls ;
tls=record
something:string[30];
another:string[30];
password :integer;
end;
var
Form1: TForm1;
list :Tlist;
rec: Pls;
procedure no_idea_how_to;
var
nw:pls;
begin
//reading from Tlist
new(nw);
nw:=list.Items[z];
nw.something:='it's a hard life';
// and so on
//adding record to list
new(nw);
(..)
list.add(nw);
end;
but this code is not working in Lazarus. Any ideas ?
Thank you in advance.