sum together integer values in labels

bigr3d

Member
Joined
May 30, 2007
Messages
6
Programming Experience
Beginner
well i was helped SO much here already however i need to know one more simple function

Between me, 2 friends and this very site we have figured out how to multiply to integers together and make it display in a label.

we have to make amny of these small calculations in different text boxes and each calculation must display in individual labels
however these are only the sub totals and we need to get each label added together to get the final total!
we asked our teacher and she didnt know and the outcome is TODAY!!!!:eek:

could some one please help, i will be sitting the outcome in 3hrs and i need to know and i dont want to fail


any help or advice at all would be so apreciated:)
thanks for reading!!
:)
 
Moved to more relevant category.

If you have marked the labels (for example using the Tag property) that you want to add the values of, you could loop through the form's control collection looking for those labels and add them to a variable you declare first.

If you know the names of the labels then simply declare an integer variable and add the values of the labels to that variable.

To give a better solution we would need more information (are there always a set amount of labels?, ...)

Not meaning to sound rude but I'm having trouble understanding the problem as this is a very simple task. Also please use more descriptive titles for your posts. Nearly all people posting in this forum require help. :)
 
sorry mate; i will be more descriptive from now on its just that my brian is fried at the moment from it all

but i figured it out now thanks though
 
Back
Top