S shaffnert03 Member Licensed User Longtime User Nov 29, 2013 #1 I had a problem recently that Erel helped me with, details at http://www.b4x.com/android/forum/threads/sender-issue-i-think.35079/#post-205622. Thanks to that help I moved to a new issue with the CustomListView. I want to be able to move items up or down the list. I'm trying to do that by deleting a line and adding it back above or below where it was, but I don't know how to get the data out of the line I'm deleting first. The file is attached, line 108 is my attempt to get the old data (which I would then feed in to the last line of that same sub), but it pulls out the line tag instead of the line values. If I browse the object in debug mode I can see the values I want in the 1, 2, and 3 objects of the array view in the x variable. How do I get these values back out to be able to submit them to the add line? Attachments MoveUpIssue.zip MoveUpIssue.zip 9.7 KB · Views: 342
I had a problem recently that Erel helped me with, details at http://www.b4x.com/android/forum/threads/sender-issue-i-think.35079/#post-205622. Thanks to that help I moved to a new issue with the CustomListView. I want to be able to move items up or down the list. I'm trying to do that by deleting a line and adding it back above or below where it was, but I don't know how to get the data out of the line I'm deleting first. The file is attached, line 108 is my attempt to get the old data (which I would then feed in to the last line of that same sub), but it pulls out the line tag instead of the line values. If I browse the object in debug mode I can see the values I want in the 1, 2, and 3 objects of the array view in the x variable. How do I get these values back out to be able to submit them to the add line?
Erel B4X founder Staff member Licensed User Longtime User Nov 29, 2013 #2 Code: Sub MoveUp(Index As Int) Dim x As Panel x=clv3.GetPanel(Index) Dim lbl1 = x.GetView(0), lbl2 = x.GetView(1), lbl3 = x.GetView(2) As Label Upvote 0
Code: Sub MoveUp(Index As Int) Dim x As Panel x=clv3.GetPanel(Index) Dim lbl1 = x.GetView(0), lbl2 = x.GetView(1), lbl3 = x.GetView(2) As Label
S shaffnert03 Member Licensed User Longtime User Nov 29, 2013 #3 That covered it, many thanks! Upvote 0