Why does memo.Lines use TStrings instead of TStringList?
问题 Why does Memo.Lines use the abstract class TStrings ? Why doesn't it use TStringList instead? And should I convert it to TStringList before working with it? 回答1: TMemo.Lines , TListBox.Items , TComboBox.Items , etc. ; all are declared as TStrings . Beware, talking about the property that is! The internal created types are TMemoStrings , TListBoxStrings and TComboBoxStrings respectively, which are all descendants of TStrings and differ all in way of storage. And why? For interchangeability and