the first row always has the instance number 0, such as "Table1.Row1" or simply "Table1.Row1".
The last row can be addressed by instance counter "Table1.Row1[Table1.Row1.instanceManager.count - 1]" or the short way "Table1.Row1[Table1._Row1.count - 1]".
hello there! thank you so much!!!! However, I’m trying to apply this same code to a second object that is performing an additional calculation and I’m having A LOT of trouble and would LOVE your help or anyone else's help.
My calculations are dependent on:
1. If a checkbox is checked
2. The number of days entered
3. The number of rows that are added
Basically, if the first row is the ONLY row, then it can contain three possible calculations
- if a checkbox is checked and the total number of days entered is <= 2, then the calculation is.... partial.rawValue * Days.rawValue
- if a checkbox is checked and the total number of days entered is > 2, then the calculation is....perDiem.rawValue * (Days.rawValue - 2 ) + (partial.rawValue * 2)
- otherwise, the calcuation is....perDiem.rawValue * Days.rawValue
However, if more than one row is selected, then the first and the last row would contain the following possible calculations:
- If a checkbox is checked, then the calculation is…perDiem.rawValue * (Days.rawValue - 1 ) + partial.rawValue
- Otherwise, the calculation is…perDiem.rawValue * Days.rawValue
The middle rows are always going to contain one possible calculation of…perDiem.rawValue * Days.rawValue