Can I sum class values from diferent classes?Dear
I have a Class like this
PublicClass Item
Public Quantity1AsInteger
Public Quantity2AsInteger
.....
PublicQuantity20AsInteger
End Class
And two object like:
DimItem1AsItem
DimItem2AsItem
Now, I need to sum all the Quantity's, from 1 to 20. Can I do something like
DimItemSumAsItem
ItemSum = Item1 + Item2
I know I can make a function to sum all "Item" variables, BUT, how can I sum any class variables?
Is there something like this code?
For EachItemSum.Item"n"In {Item1, Item2, ... Item"n"}
ItemSum = Item1 + Item2 + ... + Item"n"

