Click or drag to resize

IUrlsExists Method

Returns true if the given item exists in the collection

Namespace:  SuperOffice.COM.SuperOfficeDB
Assembly:  SuperOfficeDB.Interop (in SuperOfficeDB.Interop.dll) Version: 8.0.0.0
Syntax
bool Exists(
	int Id
)

Parameters

Id
Type: SystemInt32
Index into the collection. The first URL has index 1. Use the Count() method to get the total number of URL's in the collection

Return Value

Type: Boolean
Boolean - True if such an URL exists.

Implements

IMapCollectionExists(Int32)
Examples

Exists

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

This will test whether the current contact has any URLs at all.

VB
Dim objSO
Set objSO = CreateObject("SuperOffice.Application")
If not (objSO is nothing) Then
    if objSO.CurrentContact.Urls.Exists (1) then
        MsgBox "The current contact has registered one or more URL�s"
    else
        MsgBox "The current contact has no URL�s registered"
    end if
else
    MsgBox "Unable to connect to database"
end if
Set objSO = Nothing

See Also