Click or drag to resize

ISelectionMemberContactName Property

The contact name of the selection member is returned as a string

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

Property Value

Type: String
SOContact – a reference to the contact object String – the company name
Examples

Contact

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

This example returns the first selection members formatted label:

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 city: " & sele.contact.formattedlabel
else
    MsgBox "Unable to connect to database"
end if
Set objSO = Nothing

ContactName

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

Returns the first selection member contact name

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 name:" & sele.contactname
else
    MsgBox "Unable to connect to database"
end if
Set objSO = Nothing

See Also