Performs mathematical operations on two groups, and stores the result in another group. You can add the two groups, subtract one from the other, or perform Boolean AND, NOT, and XOR operations on the two groups.
GrpMath(hResult, hOne, hTwo, Type)
The group number where the result is placed.
Number of first group used in the mathematical operation.
Number of the second group used in the mathematical operation.
Type of mathematical operation:
0 - Add groups one and two.
1 - Subtract group two from group one.
2 - AND groups one and two.
3 - NOT groups one and two.
4 - XOR groups one and two.
0 (zero) if successful, otherwise an error is returned.
! Subtract Section1 from Plantwide and place in Result.