Hey everyone,
I have a label that gets data from a database and uses that as the .Text field. I want to compare this .Text field with an integer value, but I can't convert the text. The value I'm trying to convert to integer is "25,000". Here's what I've tried:
Int32.TryParse(label_Start_Miles1.Text, System.Globalization.NumberStyles.Integer, null, out start);
Convert.ToInt32(label_Start_Miles1.Text);
Int32.Parse(label_Start_Miles1.Text, out start);
All of them blow up during run, except tryparse which just doesn't work.