Link to home
Start Free TrialLog in
Avatar of gollygood
gollygood

asked on

adding to a listbox

I know this code is wrong, but can someone correct my code to allow multiple items to be added to a l;ist box.

flatListBox1.Items.Add(Name.Text) and (address.Text) and (index2.text);
Avatar of SteveBay
SteveBay
Flag of United States of America image

flatListBox1.Items.Add(Name.Text);
flatListBox1.Items.Add(address.Text);
flatListBox1.Items.Add(index2.text);
Avatar of gollygood
gollygood

ASKER

thanks, i tried to edit my Q. But..

how do i make the lines in the listbox differnt shades or is it another component ? if so which one?
and how do i have the items i added to list box in a line and not listed , like..

|name|address|index|
ASKER CERTIFIED SOLUTION
Avatar of SteveBay
SteveBay
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
actually :

procedure TForm1.Button1Click(Sender: TObject);
begin
flatListBox1.Items.Add('Name.Text' + '|'+ 'address.Text' +'|' + 'index2.text');
end;
end.