Public Function TrueEveryNCalls( _ Optional ByVal vNthCall As Variant _ ) As Boolean
TrueEveryNCalls(0) = True ' #1; Reset counter. TrueEveryNCalls(3) = False TrueEveryNCalls(3) = False TrueEveryNCalls(3) = TrueSee also:
TrueEveryNSeconds Function BeepEveryNthCall FunctionvNthCall: The number of calls to this function before the function returns True. vNthCall defaults to 0 (zero) if it is missing or Null or cannot be fixed up to a number, meaning that the function will return True and the counter will be reset as in example #1.
Copyright 1996-1999 Entisoft
Entisoft Tools is a trademark of Entisoft.