Click or drag to resize

IDatabaseGetProject Method

Get an existing project from the database. Returns an error if the project is hidden.

Namespace:  SuperOffice.COM.SuperOfficeDB
Assembly:  SuperOfficeDB.Interop (in SuperOfficeDB.Interop.dll) Version: 8.0.0.0
Syntax
SOProject GetProject(
	int ProjectId
)

Parameters

ProjectId
Type: SystemInt32
the Db identifier of the specific project

Return Value

Type: SOProject
SOProject – the project record
Examples

Get the project with id = 7

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

VB
dim objso
dim obproj
set objso =  CreateObject("superofficedb.database")
If not (objSO is nothing) Then
    objso.login  "<userid>", "<password>"
    set  objproj = objso.getproject (7)
    msgbox  "project name = " & objproj.name
else
    msgbox  "unable to connect to database"
end if
set objso = nothing

See Also