[lazarus] ListView Question

Mattias Gaertner nc-gaertnma at netcologne.de
Fri Feb 28 14:26:26 EST 2003


On 28 Feb 2003 09:06:43 -0600
Bruno Alejandro <bruno at vias.com> wrote:

> 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






More information about the Lazarus mailing list