I have 8 holes each a single feature is there a way for ilogic to count the active ones even if they change to inactive without a ten mile long code?
Hole 1 true
Hole 2 true
Hole 3 true
Hole 4 False
Hole 5 False
Hole 6 False
Hole 7 true
Hole 8 true
Count should be 5
If I change to
Hole 1 true
Hole 2 true
Hole 3 true
Hole 4 False
Hole 5 true
Hole 6 False
Hole 7 true
Hole 8 true
Count should be 6
Hole 1 False
Hole 2 False
Hole 3 False
Hole 4 False
Hole 5 true
Hole 6 False
Hole 7 true
Hole 8 true
Count should be 3
Can this be done with short code?
Many Thanks
Solved! Go to Solution.
Solved by thomaskennedy. Go to Solution.
Hmm.. The error was on line 64, which was the 'For Each' line (I actually recopied the exact same code in and it worked fine, which is why I think something went wrong when doing the initial copy / paste)
You don't need an End If when using the IF statement on one line - I like to do my simpler IF statements like this because it makes for much cleaner code.
Cheers,
Tom
Sounds good,
Probably my mistake then.