StopTime

Top  Previous  Next

Object: EHL7.EHL7Processor

FileName: EHL7.dll

 

PROPERTY

 

Name: StopTime

DataType: String (a valid Time formatted string)

Mode: Read/Write

Description: This property determines when a processing profile should stop execution determined by ProcessingOptions property.  How long processing is stopped is determined by the PauseHours property.  This method is useful if you need to halt a processor object at different times during the day to allow for tape or database backups, etc.

 

 

 

Example:

Private WithEvents x As EHL7.EHL7Processor

''''

Set x = New EHL7.EHL7Processor

x.IniFileName = "C:\EasyHL7\Profile1.ini"

If Not x.OpenProfile() Then

  Msgbox x.LastError

  Set x = Nothing

  Exit Sub

End If

'Change the Processing options to enIntermittent

x.ProcessingOptions = enIntermittent

x.StopTime = "12:00 AM"

x.PauseHours = "2"

'For as long as it runs this profile will now stop at 12:00 AM for 2 hours

If Not x.ProcessProfile() Then

  Msgbox x.LastError

  Set x = Nothing

  Exit Sub

End If