jListView.GetCheckedItemPosition always returns -1 lazarus / 43-Android ---------------------------------------------------------------------- Thyphoon · 2020-07-09 22:11 Today I updated lawn and when I compiled a project of mine I noticed that jListView.GetCheckedItemPosition is always returning -1, maybe I has something to do with a recent update? ---------------------------------------------------------------------- jmpessoa · 2020-07-10 02:12 Can you do some diff in  "jListView.java"   for  "GetCheckedItemPosition"? [LAMW folder "...\android_wizard\smartdesigner\java" ] ---------------------------------------------------------------------- Thyphoon · 2020-07-14 15:02 Like this? Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i  -       -     // Fix GetCheckedItemPosition [by TR3E]+                             public int GetCheckedItemPosition() {                              for( int i = 0; i < alist.size(); i++ )-                        if( alist.get(i).checked )-                                return i;-                     +                if( alist.get(i).checked )+                      return i;+                               return -1;      }       It doesnt seems to have changed... But whenever I use GetCheckedItemPosition it returns -1  wherever there is a item selected or not. ---------------------------------------------------------------------- jmpessoa · 2020-07-14 16:06 Quote// Fix GetCheckedItemPosition [by TR3E] ... Maybe   @TR3E  can help here.... [Please,  if possible]  Can you do a simple project/example   and put it in some open drive? Thanks! ---------------------------------------------------------------------- Thyphoon · 2020-07-15 13:05 Sure! https://drive.google.com/file/d/1qKlyz2DQ5IL67Zad0cU4NthaeRvn5zWg/view ?usp=sharing if I compile this with an older version of LAWN, GetCheckedItemPosition returns the checked item position ok. ---------------------------------------------------------------------- Thyphoon · 2020-07-15 16:45 I changed GetCheckedItemPosition  for GetItemIndex, I was misusing GetCheckedItemPosition to get the Index of the selected item and Adiv fixed it, sorry. ---------------------------------------------------------------------- jmpessoa · 2020-07-15 18:42 Ok! Have a good time!