Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2003-02

ListView Question

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Mattias Gaertner
to Bruno Alejandro: Hi!! I'm using 2 TListBox, but I need to know what item is selected, and what is the…
Show quoted text 8 lines
Hi!! I'm using 2 TListBox, but I need to know what item is selected, and what is the index of this item, and how to obtain the caption of it... because I try: ListBox.selected.index ListBox.selected.Delete

This is TListView syntax

And nobody works, only if I give the index: listbox.selected[1];

This is TListBox syntax

Both TListView and TListBox seems to work for me. Can you give more details?

Mattias

Reply by email

Bruno Alejandro

Hi!!

I'm using 2 TListBox, but I need to know what item is selected, and what is the index of this item, and how to obtain the caption of it...

because I try:
ListBox.selected.index
ListBox.selected.Delete

And nobody works, only if I give the index:

listbox.selected[1];

but it doesnt match where I want

Tks
Bruno Chavez

Reply by email