Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2003.04.07;
Скачать: 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 вся ветка

Текущий архив: 2003.04.07;
Скачать: CL | DM;

Наверх




Память: 0.46 MB
Время: 0.014 c
7-19877
MixerPro
2003-02-12 16:06
2003.04.07
Как определить высоту в пикселях Caption формы?


7-19909
Adil
2002-11-24 08:10
2003.04.07
Keyboard


3-19433
off
2003-03-18 14:30
2003.04.07
В IB есть такая приблуда


14-19774
npAKTuk
2002-12-25 12:03
2003.04.07
Хочу изучить OpenGL


3-19484
spogi
2003-03-19 12:58
2003.04.07
v Paradox ne integer a real, ili float. ctobi...