DefinitionSource
Returns or sets a value that specifies how the rule and segment definitions are read in.
Syntax
object.DefinitionSource [ = String]
The DefinitionSource property syntax has these parts:
| Part | Description |
| object | An object expression that evaluates to the HL7 control. |
| String | A string expression that specifies the option of how the rule and segment definition are read in(defReadFromFile, defAddRunTime). |
Remarks
DefinitionSource of an object is initiated at design time or at runtime by
specifying how the rule and
segment definitions are read in. If defReadFromFile is specified then the rule and segment
definitions are
read in from files specified by the HL7Path and HL7Version
properties. if defAddRunTime is specified
then the rule and segment definitions are add at runtime by calling the AddSegDef and
AddSegDefField
methods. If the DefinitionSource property is set at runtime it should be set
before calling the Init
method.
Example
Private Sub Form_Load()
Hl7cntl1.DefinitionSource = defReadFromFile
If Len(App.Path) > 3 Then
Hl7cntl1.HL7Path = App.Path & "\"
Else
Hl7cntl1.HL7Path = App.Path
End If
Hl7cntl1.HL7Version = ".v22"
msgRules.v22, segDefs.v22 files
Hl7cntl1.Init
.
..
...
This page, and all contents, are Copyright © 1998 by
Gary M. Gallagher.
Sparrow Technologies Incorporated - http://www.sparrow-technologies.com