The number of Rx preparations included in the Rx package.
object.PreparationCount
Part | Attribute | Type | Description |
---|---|---|---|
object |
Required | The object always implements the
ISRxPackage interface |
int
Display some information about each Rx preparation in the Rx packages loaded on the basis of the selected filter.
Dim aFilter
Dim aRxCollection
Dim aRxPackage
Dim i, j
Dim aPreparation
Dim aMessage
Set aFilter = Profile.CreateRxFilter
aFilter.RxName = "Pendine"
aFilter.IncludePreparations = False
aFilter.IncludePackages = True
aFilter.IncludeGroups = False
aFilter.IncludeChemicals = False
aFilter.RxNameSearchMode = 1 'rnsmStartsWith
set aRxCollection = Profile.LoadRxCollection(aFilter)
aMessage = "Rx Packages Count = " & aRxCollection.Count & vbNewLine
for i = 0 to aRxCollection.Count - 1
set aRxPackage = aRxCollection.Item(i)
aMessage = aMessage & vbNewLine & (i + 1) & ". " & aRxPackage.Name &_
vbTab & aRxPackage.PreparationCount
for j = 0 to aRxPackage.PreparationCount - 1
set aPreparation = aRxPackage.Preparation(j)
aMessage = aMessage & vbNewLine & vbTab & (i + 1) & "." & (j + 1) & ". " &_
"Preparation: " & aPreparation.AsString
next 'j
next 'i
Profile.MsgBox(aMessage)
In Profile Client v8 on User Interface Rx package and its preparations can be found in
in or in .