'Resumes the AlarmODBC task. Return of 0 is a success. Current logged in user does NOT
'have to have security rights.
'This function will execute regardless of the "Allow Operator to Pause Alarm Logging"
'Setting found in the iFIX ODBC Alarm Service Configurator of the System Configuration
'Utility.
'All of these functions will block until the request is completed.
2:iFIX 如何使用 vba 开启和停止基于时间和事件的调度?
Description:This solution shows how to start and stop a time-based or event-based schedule
running in the background.
Resolution:STOP / START a EVENT BASED SCHEDULE
To Start:
Private Sub CommandButton1_Click()
Dim Var1 As Object
Dim Var2 As Object
Set Var1 = GetObject(, "FixBackGroundServer.Application")
Set Var2 = Var1.System.FindObject("SchedTest1.FIXEvent1")
Var2.StartEvent
End Sub
To Stop:
Private Sub CommandButton1_Click()
Dim Var1 As Object
Dim Var2 As Object
Set Var1 = GetObject(, "FixBackGroundServer.Application")
Set Var2 = Var1.System.FindObject("SchedTest1.FIXEvent1")
Var2.StopEvent
End Sub
STOP / START a TIME BASED SCHEDULE
To Stop the TimerObject:
Private Sub CommandButton1_Click()
Dim Var1 As Object