Вниз
Скачать: CL | DM;

Поиск индекса элемента в списке TList   Найти похожие ветки 

← →
Glusha   (2003-03-26 02:47) [0]

Всем привет! У меня проблемка. Есть список типа TList. Я его наполняю. Потом мне надо найти индекс элемента, который я ввожу отдельно. Но постоянно выводится -1 т.е. его элемента в списке нет. Но он есть. Что посоветуете?


← →
andrey_pst ©   (2003-03-26 06:40) [1]

код


← →
Digitman ©   (2003-03-26 08:35) [2]

Returns the index of the first entry in the Items array with a specified value.

function IndexOf(Item: Pointer): Integer;

Description

Call IndexOf to get the index for a pointer in the Items array. Specify the pointer as the Item parameter.

The first item in the array has index 0, the second item has index 1, and so on. If an item is not in the list, IndexOf returns -1. If a pointer appears more than once in the array, IndexOf returns the index of the first appearance.



Страницы: 1 вся ветка

Скачать: CL | DM;



Память: 0.45 MB
Время: 0.014 c
14-19838
Malder
2003-02-27 23:31
2003.04.07
Большой куш (snatch)


4-19924
migaikin
2003-02-08 15:24
2003.04.07
ресурсы GDI


1-19522
kat
2003-03-26 11:09
2003.04.07
Отчет в QuickRep в ширину на 2-х страницах


14-19773
an
2003-03-23 03:24
2003.04.07
Для перехода на D7 нужен FastReport для D7 , а точнее frClass


14-19809
крот
2003-03-19 13:59
2003.04.07
Я, Вань, такую же хочу...




   Наверх