View Single Post
 
Old 02-17-2017, 01:55 PM
rojam rojam is offline
Senior Member
 
Join Date: Jun 2015
Posts: 173
Default

You don't have to save the Memo to file to allow the combobox to update it's contents.

Code:
ComboBox1.Items.Assign(Memo1.Lines);
ComboBox1.Items and Memo1.Lines are both TStrings so you can assign one to the other. That means you can also do
Code:
Memo1.Lines.Assign(ComboBox1.Items);
as a way to get the combobox items into the memo.
Reply With Quote