merlin2049er Well-Known Member Licensed User Longtime User Aug 27, 2013 #1 I had attempted to use a list (several lists) to keep variables I needed to keep track of. These variables are also in a string in one of my listviews. I was running into index out of bounds errors... when going back a few steps. Anyways, would it be just as good to parse last string in list view and roll them back. I'm not sure what the most pleasant looking way to do this is.
I had attempted to use a list (several lists) to keep variables I needed to keep track of. These variables are also in a string in one of my listviews. I was running into index out of bounds errors... when going back a few steps. Anyways, would it be just as good to parse last string in list view and roll them back. I'm not sure what the most pleasant looking way to do this is.
Erel B4X founder Staff member Licensed User Longtime User Aug 27, 2013 #2 We need more information... Which information are you tracking? Upvote 0
merlin2049er Well-Known Member Licensed User Longtime User Aug 27, 2013 #3 Hi, I was tracking serve, side, player 1 score, player 2 score side = char , ie . "L" or "R" everything else was an int. value I'd like to roll these back with an undo button. kind of started this thread here as well... http://www.b4x.com/android/forum/threads/listview-lists.32120/ Upvote 0
Hi, I was tracking serve, side, player 1 score, player 2 score side = char , ie . "L" or "R" everything else was an int. value I'd like to roll these back with an undo button. kind of started this thread here as well... http://www.b4x.com/android/forum/threads/listview-lists.32120/
Erel B4X founder Staff member Licensed User Longtime User Aug 27, 2013 #4 Create a custom Type with all the values. You should store the "steps" in a list that holds these types. Implement "undo" by taking the last item from the list. Upvote 0
Create a custom Type with all the values. You should store the "steps" in a list that holds these types. Implement "undo" by taking the last item from the list.