@messham
I am not sure what your Table looks like so I will give my own example.
Assume we had a Table created from a collection like this. (You can expand it to 24 hours but I didn't want to type that much).
ClearCollect(
myTimePeriods,
{ID: 1, TimePeriod: "00:00 - 01:00"},
{ID: 2, TimePeriod: "01:00 - 02:00"},
{ID: 3, TimePeriod: "02:00 - 03:00"},
{ID: 4, TimePeriod: "03:00 - 04:00"}
)
We start by putting this code in the OnVisible property of the screen
Set(currentTimePeriod, 1);
Then we put this code in the Dropdown for the following properties. Make sure it is a Dropdown and not a ComboBox.
Items: myTimePeriods.TimePeriod
Default: LookUp(myTimePeriods, ID = currentTimePeriod)
Finally, put this code in the OnSuccess property of your form to increment the next dropdown option.
If(currentTimePeriod = 24,
Set(currentTimePeriod, 1),
Set(currentTimePeriod, currentTimePeriod + 1)
);
Reset(your_dropdown_name);
Now your dropdown will increment to the next option.
---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."