ISAddresses.SourceRef

Description

Source Refs for the patient's additional addresses.

Syntax

object.SourceRef

Part Attribute Type Description
object Required
The object always implements the ISAddresses interface

Return Value

string

Example

Display source refs for the patient's additional addresses.

Dim aPatient
Dim aAddresses, aAddress
Dim i
Dim aMessage   
Dim aAddressCollection

Set aPatient = Profile.SelectPatient 

set aAddressCollection = aPatient.LoadAddresses

if aAddressCollection.Count = 0 then
  Profile.MsgBox ("There is no adress")
  exit sub
end if     

for i = 0 to aAddressCollection.Count - 1
  set aAddress = aAddressCollection.Item(i)  
  set aAddresses = Profile.LoadAdditionalAddress(aAddress.Id)
  aMessage = aMessage & vbNewLine & "The Source Ref" &_ 
    " for the additional address " &_
    aAddresses.AsLine & " is """ & aAddresses.SourceRef & """"
next 
Profile.MsgBox (aMessage)  
Note:

In Profile Client v8 on User Interface Source Ref cannot be found.

Version information

Added in v7.8.0