Poll()

Top  Previous  Next

Object: EHL7.EHL7Processor

FileName: EHL7.dll

 

METHOD

 

Name: Poll()

Parameters: None

Returns: Boolean

Description: Causes polling of the InboundPath for HL7 files to ocurr on the next polling event (ie., in the next second).

 

This method can only be called successfully if the poller is currently active (ie., the ProcessProfile method has been called and is not currently paused or asleep due to the ProcessingOptions settings).

 

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

'Turn off automatic polling

myProcessorObj.PollingInterval = 0

If Not myProcessorObj.ProcessProfile() Then

       MsgBox myProcessorObj.LastError

       myProcessorObj.ClearErrors

End If

End Sub

 

Private Sub MyPoller()

'Explicitly poll the folder (you can put this on your own timer)

myProcessorObj.Poll

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