I have a MSHFlexGrid using it as an autorepair invoice. It contains columns for (LaborHours, Materials, & PartsPrice).
It has a TextBox(for Totals) for all of the columns mentioned above plus one for SalesTax and GrandTotal. I have been suscessful in writing a public sub to total up each item for each TextBox. (If I tried it as a PrivateSub, it would not work??) Each time an item is added I have to call all of the subs to get each total. (e.g. 1) Call LaborTotal 2) Call MaterialsTotal 3) Call PartsPriceTotal 4) Call SubTotal 5) Call GrandTotal)
My question is, am I calling too many subs or is it OK to call all of the subs as long as they are in the proper order? I have tried it and it works with all of the numbers I've thrown at it so far, I just don't want problems down the road. Every day above ground is a GOOD DAY!!!
It has a TextBox(for Totals) for all of the columns mentioned above plus one for SalesTax and GrandTotal. I have been suscessful in writing a public sub to total up each item for each TextBox. (If I tried it as a PrivateSub, it would not work??) Each time an item is added I have to call all of the subs to get each total. (e.g. 1) Call LaborTotal 2) Call MaterialsTotal 3) Call PartsPriceTotal 4) Call SubTotal 5) Call GrandTotal)
My question is, am I calling too many subs or is it OK to call all of the subs as long as they are in the proper order? I have tried it and it works with all of the numbers I've thrown at it so far, I just don't want problems down the road. Every day above ground is a GOOD DAY!!!