Click or drag to resize

ISaleStatus Property

Status - Open=1,Sold=2,Lost=3 The different statuses a sale may have - this is a fixed predefined list. See the database manual for an updated list of status types

Namespace:  SuperOffice.COM.SuperOfficeDB
Assembly:  SuperOfficeDB.Interop (in SuperOfficeDB.Interop.dll) Version: 8.0.0.0
Syntax
int Status { get; set; }

Property Value

Type: Int32
Long – the objects status identity
Examples

Status

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

VB
Dim objSO
Dim result
Set objSO = CreateObject("SuperOffice.Application")
If not (objSO is nothing) Then
    Select case objSO.CurrentAppointment.Status
    Case 1
        MsgBox "The sale is still open.", vbInformation + vbOKOnly, "SuperCOM"
    Case 2
        MsgBox "The sale is set as sold.", vbInformation + vbOKOnly, "SuperCOM"
    Case 3
        MsgBox "The sale is set as lost.", vbInformation + vbOKOnly, "SuperCOM"
    Case else
        MsgBox "This status must be new, I have no information regarding this sale status", vbInformation + vbOKOnly, "SuperCOM"
    end select
else
    MsgBox "Unable to connect to database"
end if
Set objSO = Nothing

See Also