Delphi 4.0 TListBox - ItemIndex

Posted on 1998-09-28
Last Modified: 2012-06-21
Does anyone know if Inprise intends to patch the TList component so that the ItemIndex property is -1 initially until it is set?  My Delphi 3.0 programs will not work correctly under 4.0, and I would like to upgrade when this is fixed.

  Jim Hoban  (  9/28/98
Question by:hobanj
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Expert Comment

ID: 1341059
hi jim,
there are lots of bugs in Delphi4. Even in Tlistbox (if at first time after creation you set itemindex:=0 nothing will be marked).
But those are the minor bugs.
i went back to D3. There are some bugs too, but i know them. i have no time to find the bugs of inprise !
i call it "banana-software".
good luck !

Expert Comment

ID: 1341060

why don't you try to do it by yourself?
simply make a new component with the anchestor TListBox,
override the constructor and set there the itemindex to -1,
perhaps this works
(I have d3, so i can't test it)



Accepted Solution

JimBob091197 earned 100 total points
ID: 1341061
Hang on there!  Delphi 4 has patches that fix many things, including the very serious TListBox ItemIndex bug.

(Jim, your question mentions TList but the title mentions TListBox.  I assume you are referring all the time to TListBox.)

The patches are available from Inprise, but are quite big for downloading (about 8MB each for Professional and Client/Server).

Patches fix several other things too, including problems with the IDE.
But the TListBox one is a biggie!


Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…

729 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question