One thought on “I need to convert String to Int?

  1. Hello Patrick,

    There are a couple of way to convert a string value into “int” in

    int x = Int32.Parse(TextBox1.Text);

    Another way to convert is:
    int x = 0;

    Int32.TryParse(TextBoxD1.Text, out x);

    Int32.TryParse returns a boolvalue so you can use its return value to make a decision.

Comments are closed.