Click or drag to resize

IDocumentProject Property

Project this document refers to A document may also be connected to a project, so you see the document 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.

This example will return the project name, if there is a project connected to the document

VB
Dim objSO
Dim result
Set objSO = CreateObject("SuperOffice.Application")
If not (objSO is nothing) Then
    Result = objSO.CurrentDocument.project.name
    If result <> "" then
        MsgBox "Current document project name is: " & objSO.CurrentDocument.project.name, vbInformation + vbOKOnly, "SuperCOM"
    Else
        MsgBox "Current document is not connected to a project", vbInformation + vbOKOnly, "SuperCOM"
    end if
else
    MsgBox "Unable to connect to database"
end if
Set objSO = Nothing

See Also