Hi Kix experts,

I'm currently developing a script that automates the user setup for a Lotus Notes Client. Works quite well for about 80 % of the work to be done, but now I'm stuck

I was quite able to convert below VB code to kix but I'm stuck now at line

strName = domDocument.GetItemValue("FullName")(0)

I assume that GetItemValue method returns a two dimensional array?

I tried $strName = $domDocument.GetItemVale["FullName",0] but this doesn't work, a empty string is returned...

I know that Notes is not that popular and using KIX together with Notes either, but it's worth a try to post my problem here, you never know...

Greetings from Switzerland!

Samuel



 Code:
Dim domSession As New Domino.NotesSession   
Dim domDatabase As New Domino.NotesDatabase
Dim domDocument As NotesDocument
Dim domViewEntry As NotesViewEntry
Dim domView As NotesView
Dim domViewNav As NotesViewNavigator
Dim strName As String

domSession.Initialize
Set domDatabase = domSession.GetDatabase("", _
"names.nsf")  
Set domView = domDatabase.GetView("Contacts")
' This view contains the list of names
Set domViewNav = domView.CreateViewNav
Set domViewEntry = domViewNav.GetFirstDocument()
Set domDocument = domViewEntry.Document

strName = domDocument.GetItemValue("FullName")(0)
MsgBox strName

Set domViewEntry = Nothing
Set domViewNav = Nothing
Set domView = Nothing
Set domDocument = Nothing
Set domDatabase = Nothing
Set domSession = Nothing


Edited by Mart (2012-04-26 09:48 AM)
Edit Reason: Please use code tags when posting code.