Click or drag to resize

IEmailsRemove Method

Remove an item by index

Remove a specific member from the collection. The remove is now forwarded to the model for database action.

Note you still have to say SaveModel at some point to make the changes permanent

Namespace:  SuperOffice.COM.SuperOfficeDB
Assembly:  SuperOfficeDB.Interop (in SuperOfficeDB.Interop.dll) Version: 8.0.0.0
Syntax
void Remove(
	int Index
)

Parameters

Index
Type: SystemInt32
Index into the collection. The first email has index 1. Use the Count() method to get the total number of emails in the collection
Examples

Remove

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

VB
Dim objSO
Set objSO = CreateObject("SuperOffice.Application")
If not (objSO is nothing) Then
    objSO.CurrentContact.Emails.Remove (1)
    MsgBox "The first email of the current contact is deleted�
else
    MsgBox "Unable to connect to database"
end if
Set objSO = Nothing

See Also