Hi Koders,
I didn’t understand from where should I start to solve this ?
I have json response of 100 items of a list.
I wants to get data like this ;
When user start app first then get value of 20 items from json response and I have two buttons for next and previous. when user click on next button then get value of next 20 items from response and so on.
But when user click on previous button then get value of previous 20 items from response.
Use the current start and current end ( for eachIndex ) Depending on the button clicked, you will either increase these values or decrease them.
And control the lowest value and the highest value, the lowest will be 1 and the highest will be the number of items). It cannot be less than 1 or greater than the number of items.
Added two variables as initial and next data and set there values to 1 and 10 . Once next button click increase both the values by 10 and if previous button click then decrease both the values by 10.
Then get values from list with number by for each from to block.