ISCountryItem.UNCode

Description

The United Nations Code of the country item.

Syntax

object.UNCode

Part Attribute Type Description
object Required
The object always implements the ISCountryItem interface
Restriction: This property is readonly.

Return Value

int

Example

Display the collection of the country items loaded from Profile, their UN Codes and long names.

Dim aCountryItems, aCountryItem
Dim aMessage

Set aCountryItems = Profile.LoadCountryList

aMessage = "Country Items Count: " & aCountryItems.Count &_
  vbNewLine & vbNewLine & "#" & vbTab & "UN Code" & vbTab & "Long Name"

for i = 0 to aCountryItems.Count - 1 
  set aCountryItem = aCountryItems.Item(i)
  aMessage = aMessage & vbNewLine & (i+1) & ") " & vbTab & aCountryItem.UNCode &_
    vbTab & vbTab & aCountryItem.LongName    
next 
 
Profile.MsgBox(aMessage)   
Note:

In Profile Client v8 on User Interface UN Code cannot be found, but Country Items for the patient can be found in Patient > Alter Patient > General > Street Address.

Version information

Added in v7.8.0