EasyHL7 Events In Visual Basic |
Top Previous Next |
*In Visual Basic you must use early binding to use events
First, in your project references section, you must create a reference to the EHL7.dll file
Then declare a variable 'withevents' in a VB form or Class module's declaration area.
Example:
Private WithEvents myProcessorObj As EHL7.EHL7Processor Private WithEvents myFileObj As EHL7.HL7File
'Then in Form_Load or Class.Initialize
Set myProcessorObj = New EHL7.EHL7Processor Set myFileObj = New EHL7.HL7File '...code '...code '...code
'Then Cleanup in Form_Unload or Class.Terminate
Set myProcessorObj = Nothing Set myFileObj = Nothing
|