Click or drag to resize

IPhonesAdd Method

Add a phone number to the collection. Type is 1=phone, 3=fax, 5=mobile

Namespace:  SuperOffice.COM.SuperOfficeDB
Assembly:  SuperOfficeDB.Interop (in SuperOfficeDB.Interop.dll) Version: 8.0.0.0
Syntax
SOPhone Add(
	string strPhone,
	string strDescr,
	int Type = 1
)

Parameters

strPhone
Type: SystemString
A string representing the phone i.e 22 51 70 00
strDescr
Type: SystemString
Descriptive text
Type (Optional)
Type: SystemInt32
Long

Return Value

Type: SOPhone
SOPhone – The newly added Phone
Examples

Add

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

This will add a new phone to the current contact.

VB
Dim objSO
Set objSO = CreateObject("SuperOffice.Application")
If not (objSO is nothing) Then
    objSO.CurrentContact.Phones.Add �22 51 70 00�, �SuperOffice ASA phone�
    MsgBox "An new phone is added to the current contact�
else
    MsgBox "Unable to connect to database"
end if
Set objSO = Nothing

See Also