Go4Expert (http://www.go4expert.com/)
-   C# (http://www.go4expert.com/forums/c-sharp/)
-   -   Sum of form entries (http://www.go4expert.com/forums/sum-form-entries-t23244/)

flxbbs 8Sep2010 12:49

Sum of form entries
I'm a beginner C# programmer, I just want to know how would I go around writing a script that adds digit entered in a form?:undecided

dotNet Zombie 14Sep2010 08:21

Re: Sum of form entries
something like this


int x = 0;
foreach (char c in textBox1.Text)
      x += Convert.ToInt32(c.ToString());

chwax 16Sep2010 23:24

Re: Sum of form entries
first gotta read welcome to c# then start workin

All times are GMT +5.5. The time now is 03:58.