Abbreviated name format

Hi All,

The situation is:

I am having the name of the person in one of the field of the document. This field is of type Text-Computed. The field will alwaya have the name of the person in the common name format.

I want to get this name in the Abbreviated name format. For that I am using the below code.

Dim nam As NotesName

Set nam = New NotesName(doc.BetaTester(0))

Dim namabb As String

namabb=nam.Abbreviated

Msgbox namabb

but this peice of code is returning me the common name format which is already present in the field Beta Tester.

How can I get this name in the Abbreviated format.

I tried below formula code also…But it didnt work.

@NameLookup([Exhaustive];@UserName;FullName)

What can be wrong. Please let me know.

Thanks in advance,

Aditya

Subject: Abbreviated name format.

I use following function to get Abb Name:

dim nam as string

call AbbUserName(nam)

Function AbbUserName(CannUserName As String) As String

Dim AbbuserNotesName As New NotesName(CannUserName)

AbbUserName=AbbuserNotesName.Abbreviated

End Function

Hope this helps you.

~Cheers D P J

Subject: Abbreviated name format.

Check the below options in names.nsf

Abbreviated property returns the canonical name if the abbreviated name would be ambiguous.

Abbreviated property returns the canonical name if the name has components not used in Domino names.

Subject: Abbreviated name format.

Try to replace: “@username” by the content of Field “BetaTester”

@NameLookup([Exhaustive];BetaTester;FullName)