次のエージェントは正規形の階層名を作成し、それを省略形の階層名で表示します。
Sub Initialize
Dim session As New NotesSession
Dim nam As NotesName
REM Create a hierarchical name
Set nam = session.CreateName( _
"CN=John B Goode/OU=Sales/OU=East/O=Acme/C=US")
REM Returns "John B Goode/Sales/East/Acme/US"
Messagebox nam.Abbreviated,, "Abbreviated name"
End Sub