Highlights
All Snippets
Top 100 Snippets
Librarians
gbCodeLib

By Language
VB6
JavaScript
Perl
HTML
SQL
Java
DOS

GBIC >> Source Code >> Visual Basic >> Snippet

Repeat code every N cycles


'on every Nth event, do something
Dim iCounter As Long , N As Long
If (iCounter Mod N) = 0 Then
   'do something
End If