I just know the answer to this is going to be obvious, but I can't see it!
Listbox's - they can have multiple columns. For a single column listbox, adding a string is :
var
Firstname, Surname : string;
begin
Firstname := 'Gizmo';
Surname := 'Gremlin';
listbox1.Items.Add('Candidate Name : ' + Firstname + ' ' + Surname);
end;
But I have a Listbox where I have set it's column properties to '2'. According to a Delphi page I read (
http://docwiki.embarcadero.com/Libraries/XE7/en/Vcl.StdCtrls.TCustomListBox.Items), in Delph the columns are split by using the |^, e.g.
listbox1.Items.Add(Firstname |^ Surname)"
but that doesn't work with FPC.
How do I populate Column1, Row 1 with "Firstname" and Column2, Row1 with "Surname" and so on row after row for say a list of 100 names that are in a stringlist?
(NB : please don't suggest StringGrid. FVor various reasons, I don't want to use that)