![]() |
| ||
|
|
Новости |
Поиск |
FAQ |
Статьи |
Книги |
Новости VCL
| | Форумы ЧАТ |
Орешник |
|
| |||
| |||
« предыдущая ветвь | форум | следующая ветвь »
ListBox. [D5, WinME]
tytus © (2002-12-20 00:43:00)Доброй ночи всем. Кто нибудь знает, как из Listbox-а удалить строку? Я использую StringList, а потом в цикле переписываю строчки в ListBox.
zavdim (2002-12-20 06:43:00) [1]ListBox.Items.Delete(i);
Cobalt (2002-12-20 00:46:00) [2]TCustomListBox.Items:TStrings;
TStrings.Delete:
Introduces an abstract method to delete a specified string from the list.
procedure Delete(Index: Integer); virtual; abstract;
Description
Descendants of TStrings implement a Delete method to remove a specified string from the list. If an object is associated with the string, the reference to the object is removed as well. Index gives the position of the string, where 0 is the first string, 1 is the second string, and so on.