[CBIS 112] TryParse
Channel: Iris Kohler
Date: 2023-02-08

The user has given you a number, you want to do things with that number. Great! But did you remember to ask Visual Basic? Because Visual Basic said that the user actually gave you a string, and it definitely looks like you are trying to use it like a number. Visual Basic's not gonna like that, but maybe I can help you make sure Visual Basic doesn't ever find out, if you catch my drift...

You can use the TryParse method to change the type! :)