OmniPilot_OnTime | Nirvana Systems Inc.

OmniPilot_OnTime

OmniPilot_OnTime

Signatures
OmniPilot.OnTime(Time As String, Callback As DelegateOnTime)
OmniPilot.OnTime(Time As Date, Callback As DelegateOnTime)

Purpose
This will establish the delegate call back for the OnTime event.  This event will fire when your local computer clocks time matches the specified Date/Time.

Example
Sub OnStartup
    OmniPilot.OnTime(“8:00 AM”, AddressOf OpenOT)
    OmniPilot.OnTime(#3:00:00 PM#, AddressOf CloseOT)
End Sub

Sub OpenOT()
    StartOT()
End Sub

Sub CloseOT()
    ExitOT()
End Sub

Also See
OnTime_Event

>