validating and error checking

Page 1 of 1

1 Replies - 398 Views - Last Post: 03 March 2013 - 01:54 AM Rate Topic: -----

#1 cirustus  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 9
  • Joined: 16-February 13

validating and error checking

Posted 03 March 2013 - 12:56 AM

i have a 2d array but i am having trouble working out how to validate and error check my textbox's
they all have to contain numbers only but i cant get my head around it
any help would be appreciated.


    int day = int.Parse(textBox1.Text);
            int mon = int.Parse(textBox2.Text);
            int g = int.Parse(this.textBox3.Text);
            int h = a.GetUpperBound(0) - 1;
        
            for (int i = 0; i<=h; i++)
        {
            
        if (double.Parse (a[i,0]) == g)    
        {
            if (day >= 1 && mon == 1 || day <= 20 && mon == 1)
        


Is This A Good Question/Topic? 0
  • +

Replies To: validating and error checking

#2 modi123_1  Icon User is online

  • Suitor #2
  • member icon



Reputation: 9493
  • View blog
  • Posts: 35,838
  • Joined: 12-June 08

Re: validating and error checking

Posted 03 March 2013 - 01:54 AM

Duplicate post... closing.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1