I have a function that needs to execute every 30 mins. How can I filter it using Today.Minute? Here are the Codes I made.
Protected Sub mainLoop()
Dim Counting As Integer = 0
Try
While (Not stopping)
While Counting <> 2
If Today.Minute >= 0 Then
If Counting = 1 Then
ElseIf Counting = 0 Or Counting = 2 Then
PingServers()
Counting = Counting + 1
ElseIf Today.Minute >= 31 Then
If Counting = 1 Then
PingServers()
Counting = Counting + 1
ElseIf Counting = 0 Then
End If
End If
End While
If Counting = 2 Then
DoFunction()
End If
End While
Catch ex As Exception
End Try
End Sub
Please any one. Help :3