Page 1 of 1

How to read a ListIcon gadget

Posted: Fri Feb 06, 2026 4:33 pm
by RBart
Hi,

I have a ListIcon gadget with data from a database.
I want to read the selected item, if possible a specific column.

I got the index, but the text gives me an empty result.

Code: Select all

 frmklanten_lstKlanten_index.i = GetGadgetState(#frmKlanten_lstKlanten)
  frmklanten_lstKlanten_select.s = GetGadgetItemText(#frmKlanten_lstKlanten,frmklanten_lstKlanten_index)
  MessageRequester("lst",frmklanten_lstKlanten_select,#PB_MessageRequester_Info)
Many thanks in advance,
Rudi

Re: How to read a ListIcon gadget

Posted: Fri Feb 06, 2026 4:42 pm
by mk-soft
See PB Help.

You must specify the column (optional parameter)

Re: How to read a ListIcon gadget

Posted: Fri Feb 06, 2026 5:45 pm
by RBart
got it.
The first column (default) was empty.

Thanks mk-soft

Greetings,
Rudi