Hi,
I have a script where I make separate routines with identical code
Example:
What I would like to do is have 1 routine and dynamically set the variable I'm adding toCode:sub AddToA { ATotal += 1 } sub AddToB { BTotal += 1 }
Similar to:
Essentialy the (A/B) in the 2nd block is a variable that I set in another function.Code:sub AddOneToTotal { (A/B)Total += 1 }
Any pointers would be appreciated.




Reply With Quote