Hi,
In the text list editable “ShortName” of the person document in a Nab, I have three value :
“atest”
“test.adam@xxxxx.com”
“test.adam@yyy.xxxxx.com”
How can I extract test.adam@yyy.xxxxx.com to this text list… Which command I can use in lotus script to do this for all person in my NAB…
Thanks
FEEL…
Subject: RE: Extract Text to Text List
Deer Feel,
You need the NotesDocument object of the person document. To do this for all persons, you might use GetView to get a view that contains only pesons, and use GetFirstDocument and GetNextDocument to loop thru the documents in that view.
Once you have one person document, you can obtain just the last shortname as follows:
Dim shortnames as variant
…
shortnames = doc.GetItemValue(“ShortName”)
…shortnames(ubound(shortnames))…
What you do with the value you get from the above expression, depends on what you’re trying to accomplish.