Place a totaled value into a TextBox
Posted on 1998-10-11
I'm using VB5. I've created a control array of 10 objects. I want to total the value in the 10 textboxes and place the value into a "sum" textbox. I start out putting default values into the control array (using a loop and making the value of each textbox equal i). Now I need to total the control array and have that total display in another textbox.
Also, I want the user to be able to enter values into the control array (textboxes). How can a make my "sum" textbox always equal the sum of the control array, i.e., not just upon form_load.
I think this'll be easy, I'm probably not asking it correctly. If necessary, I'll e-mail my form and it should make more sense. Thanks!