Click or drag to resize

ISaleProject Property

Project A sale may also be connected to a project, so you see the sale both on the company card, and on the project card. This does not mean that a project is required.

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

Property Value

Type: SOProject
SOProject – a reference to the SOProject object
Examples

Project

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
    result = objSO.CurrentSale.project.Identity          
    if result = 0 then
        msgbox "The current Sale is not part of a project!", vbInformation + vbOkOnly, "SuperCOM"
    else
        msgbox "Current Sale is located on the project: " & _
        objSO.CurrentSale.Project.Name, vbInformation + vbOKOnly, "SuperCOM"
    end if
else
    MsgBox "Unable to connect to database"
end if
Set objSO = Nothing

See Also