[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


Index from Caption in ListView

Posted on 2008-11-04
Medium Priority
Last Modified: 2013-11-17
I have a little properly simple problem.
I have a ListView in Borland C++ Builder 2006, where I know the value of a caption and need the index instead or the value of the first subitem.
I thought it was I could do it like:
But unfortunately I get the error E2034 Cannot convert 'char *' to 'TListItem *' . What do I do wrong?

int Varindex = ToolView->Items->IndexOf("my caption");

Open in new window

Question by:Lubker
1 Comment

Accepted Solution

Lubker earned 0 total points
ID: 22878809
Ive found a solution:
ToolView->Items->IndexOf(ToolView->FindCaption(0,AnsiString("Type ToolId1"),False, True, False))

Open in new window


Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

In our object-oriented world the class is a minimal unit, a brick for constructing our applications. It is an abstraction and we know well how to use it. In well-designed software we are not usually interested in knowing how objects look in memory. …
How to install Selenium IDE and loops for quick automated testing. Get Selenium IDE from http://seleniumhq.org Go to that link and select download selenium in the right hand column That will then direct you to their download page. From that p…
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.
Suggested Courses

872 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