How to turn CN=Sample Name/OU=Country/O=Organization To Sample Name/Country/Organization
问问题
2557 次
2 回答
4
像这样的东西。
Dim n as New NotesName
Set n = session.CreateName( {CN=Sample Name/OU=Country/O=Organization} )
Print n.Abbreviated
有关 NotesName 如何工作的更多详细信息,请参见此处:。
例子:
CN=John B Goode/OU=Sales/OU=East/O=Acme/C=US
将返回:
John B Goode/Sales/East/Acme/US
于 2013-07-10T16:37:12.577 回答
3
两种可能:
首先有一个名为的属性notesSession.CommonUserName
,但这会省略所有内容,只返回通用名称部分
如果您确实需要缩写名称,那么 NotesName- Class 是您的起点:
Dim myName as New NotesName( ses.UserName )
'common name
Messagebox myName.Common
'abbreviated name -> that's what you are looking for
Messagebox myName.Abbreviated
于 2013-07-10T16:34:52.190 回答