C#
C#

help

Root Question Message

zonedetec
zonedetec9/16/2022
int.TryParse does not return an out value [Answered]

Hello my friends

I know you do not like screen, but it feel like it need one here, so the code is the screen.

I am trying to check if the textBox actual have a number input, and if yes to put the value into a variable.
Sadly, the if return true (so the int.TryParse work) but the variable is still the same value and does not have the new one.
How to make this work ?
Thank you
Orannis
Orannis9/16/2022
If TryParse returned true, the value it parsed will be in the out variable
Orannis
Orannis9/16/2022
So I don't know what you mean by "the same value"
zonedetec
zonedetec9/16/2022
Actually my problem were in the if statement.. oops ^^'
zonedetec
zonedetec9/16/2022
so the out things work well
zonedetec
zonedetec9/16/2022
Do I delete the post ? it is useless the problem were not in the tryparse thing
Orannis
Orannis9/16/2022
We wait for @104975006542372864 to fix Accord, then use /close
zonedetec
zonedetec9/16/2022
Okay, thank you
ContactFrequently Asked QuestionsJoin The DiscordBugs & Feature RequestsTerms & Privacy