Click or drag to resize

IAssociatesEmpty Property

Returns true if the collection is empty. i.e. if it contains no elements Checks whether the collection is empty (has no members) or not

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

Property Value

Type: Boolean
Boolean True if the collection is empty

Implements

IMapCollectionEmpty
Examples

Empty

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("SuperOfficeDB.Database")
If not (objSO is nothing) Then
    objSO.login "<USERID>", "<PASSWORD>"
    set associates = objSO.GetAssociateList
    msgbox "There are " & associates.count & "assocates in the collection"
    set first = associates.item(0)
    msgbox "The first one is: " & first.fullname
    msgbox associates.empty
    associates.remove(0)
    Msgbox "This associate was removed from memory"
Else
    MsgBox "Could not log in"
End If
Set objSO = Nothing

See Also