PollingInterval |
Top Previous Next |
Object: EHL7.EHL7Processor FileName: EHL7.dll
PROPERTY
Name: PollingInterval DataType: Long (Valid values are 0 to n seconds) Mode: Read/Write Description: Return/Set the interval (in seconds) that the processor should poll the InboundPath for HL7 files with the InboundExtension file extension. A polling interval of zero seconds tells the poller to stay active, but do no automatic polling (this allows you to manage your own polling intervals with explicit calls to the Poll() Method.
Example:
'Declare the object Private WithEvents myProcessorObj As EHL7.EHL7Processor
Private Sub Form_Load() 'Instantiate the object Set myProcessorObj = New EHL7.EHL7Processor myProcessorObj.IniFileName = "C:\EasyHL7\MyProfile.ini" If Not myProcessorObj.OpenProfile() Then MsgBox myProcessorObj.LastError myProcessorObj.ClearErrors
End If 'Set the polling interval to 10 seconds myProcessorObj.PollingInterval = 10 If Not myProcessorObj.ProcessProfile() Then MsgBox myProcessorObj.LastError myProcessorObj.ClearErrors End If End Sub
Private Sub PauseButton_Click If Not myProcessorObj.InProcess Then Exit Sub 'It is running now either pause processing or resume If Not myProcessorObj.Paused Then myProcessorObj.Paused = True 'Pause It Else myProcessorObj.Paused = False 'Resume End If End Sub
|