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
SyntaxSOProject GetProject(
int ProjectId
)
Function GetProject (
ProjectId As Integer
) As SOProject
Dim instance As IDatabase
Dim ProjectId As Integer
Dim returnValue As SOProject
returnValue = instance.GetProject(ProjectId)
SOProject^ GetProject(
[InAttribute] int ProjectId
)
Parameters
- ProjectId
- Type: SystemInt32
the Db identifier of the specific project
Return Value
Type:
SOProjectSOProject – the project record
ExamplesGet 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.
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