This function returns the movement with the specified ID.
object.LoadMovementByID(aMovementID)
Part | Attribute | Type | Description |
---|---|---|---|
object |
Required | The object always implements the
ISProfile interface |
|
aMovementID |
In, Required | int |
ID of the movement |
Display some information about the movement with the specified ID.
Dim aPatientName
Dim aMovement
Dim aMessage
On Error Resume Next
Set aMovement = Profile.LoadMovementByID(12)
if Err.Number <> 0 then
Profile.MsgBox("There is no movement with the specified ID")
Err.Clear
exit sub
end if
if not aMovement.Patient is nothing then
aPatientName = aMovement.Patient.SurnameFirstName
end if
aMessage = "The movement of " & aPatientName & " from " &_
aMovement.PhysicalLocationFrom & " to " & aMovement.PhysicalLocationTo & " on " &_
aMovement.Date
Profile.MsgBox(aMessage)
In Profile Client v8 on User Interface ID cannot be found, but Movements can be found in
or in .