Android Question Custom List View Get Value Return Error

zabayin

Member
Licensed User
Longtime User
I've added to custom list view with two simple lines with AddTextItem (as from picture)
Now i have to loop through with the following code

B4X:
For i=0 To clv.GetSize - 1
      Log(clv.GetValue(i))
Next

But i can't get the data and only show below error.

[sv=(MyScrollView): Left=10, Top=30, Width=510, Height=440, callback=class ns_rktv6.android.sale, defaulttextbackground=anywheresoftware.b4a.objects.drawable.ColorDrawable$GradientDrawableWithCorners@41a420d8
, su=anywheresoftware.b4a.objects.StringUtils@41b1c290, presseddrawable=(GradientDrawableWithCorners) anywheresoftware.b4a.objects.drawable.ColorDrawable$GradientDrawableWithCorners@41b1dd88, panels=(ArrayList) [anywheresoftware.b4a.BALayout{41c27fa0 V.E...C. ........ 0,2-510,54 #2c}, anywheresoftware.b4a.BALayout{41991638 V.E...C. ......I. 0,56-510,108 #32}]
, items=(ArrayList) [[sv=(MyScrollView): Left=10, Top=30, Width=510, Height=440, callback=class ns_rktv6.android.sale, defaulttextbackground=anywheresoftware.b4a.objects.drawable.ColorDrawable$GradientDrawableWithCorners@41a420d8
[/QUOTE]

I already added the following libraries ...
Custom List View (1.76)
StringUtils (1.12)

In Manifest ....
minSdkVersion="19"
targetSdkVersion="24"/>

The only i want is loop through and get data.
Could anyone help me ?



DikRSC.png
 
Last edited:

davidvidasoft

Member
Licensed User
Could it be that you are displaying the incorrect object's values? You start with the CLV object called ´clv´ but you loop thru the object ´clvFinal´.
 
Upvote 0
Top