Click or drag to resize

ISelectionMemberPersonName Property

If there is a contact person registered with the selection member, this will return the formatted name on this contact person

Namespace:  SuperOffice.COM.SuperOfficeDB
Assembly:  SuperOfficeDB.Interop (in SuperOfficeDB.Interop.dll) Version: 8.0.0.0
Syntax
string PersonName { get; }

Property Value

Type: String
SOPerson – a reference to the person object String – formatted person name (firstname + lastname)
Examples

Person

This text may be copied to the notepad, and saved as a *.vbs file. Remember to change the login information.

VB
Dim objSO
Dim result
Set objSO = CreateObject("SuperOffice.Application")
If not (objSO is nothing) Then
    set sele = objSO.currentSelection.SelectionMembers.item(1)
    msgbox "First selection member:" & sele.Person.FormattedLabel
else
    MsgBox "Unable to connect to database"
end if
Set objSO = Nothing

PersonName

This text may be copied to the notepad, and saved as a *.vbs file. Remember to change the login information.

VB
Dim objSO
Dim result
Set objSO = CreateObject("SuperOffice.Application")
If not (objSO is nothing) Then
    set sele = objSO.currentSelection.SelectionMembers.item(1)
    msgbox "First selection member contact person: " & sele.PersonName
else
    MsgBox "Unable to connect to database"
end if
Set objSO = Nothing

See Also