Click or drag to resize

ISalesEmpty Property

Returns true if the collection is empty. i.e. if it contains no elements

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

Property Value

Type: Boolean

Implements

IMapCollectionEmpty
Examples
VB
Dim soDB, mySale, mySaless
Set soDB = CreateObject("SuperOfficeDB.Database")

If not (soDB is nothing) Then

   soDB.Login "USERNAME", "PASSWORD"

        Set mySale = sodb.GetSale(3)
        Set links = mySale.ActivityLinks
        links.AddSale sodb.GetSale(4)
        links.AddSale sodb.GetSale(5)
        mySale.Save
        Set mySales = links.sales
        If Not mySales.Empty Then
            msg = msg & "Number of sales: " & mySales.Count & vbCrLf
            For i = 0 To mySales.Count - 1
                msg = msg & mySales.Item(i).Description & vbCrLf
            Next
            If mySales.Exists(1) Then msg = msg & "There is a sale with id = 1."
            MsgBox msg
        Else
            MsgBox "There are no sales in this collection"
        End If

else
    MsgBox "Unable to connect to database"
end if
Set objSO = Nothing
See Also