noob help VB program (IF loop)
Go to solution
Solved by fizzlesticks,
The problem if that you are defining "Dim iMinWaarde As Integer" inside the function. You need this to be a global variable and only set to 999 once so it does not get redefined to 999 every time the timer goes off.
Edit: Or you can not define it at all and just read the value back from lblValMinimumTemperatuur.Text

Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now