Hi
In my app I have a drop down with a list of values 1-20. the drop down's on change is Set(y,<nameOfDropDown>.SelectedText), which is fine. The thing is that when I go to that screen, y is not yet set, so y has a 0 value, which is not good for the rest of what's going on in the screen.
I tried setting the default value of the box to 1, but I get why that doesn't work, which leads to my issue. I tried to set the screens OnVisible to be Set(y, 1) kinda like you would do with a variable in any other programing language. The dropdown box declaration y was however not so happy with that, causing a whole string of errors with multiple declarations...
My question then is. how do I make a variable with an initial value, and then change it to later to be what you select in the dropdown box?
btw, I have tried using UpdateContext too to keep it local, which would be best practice, buut, it didn't change anything.