COM - getActProj()

Returns the current project.

Synopsis

HRESULT GetActProj([out] BSTR* sProjName, [out,retval] int* iError);

(ProjAdminAuto)

HRESULT GetActProj([out] VARIANT* sProjName, [out,retval] int* iError);

Parameter

Parameter Description
sProjName The current project.
iError Error status.

Description

The current project refers to the project that was started last. 0 is returned if the function was executed successfully. An error code is returned in case of errors. The code corresponds to an error description in the message catalog pv2admin.cat.

EXAMPLE

(See ComSample.xls, CComSample)

Public Sub getActProj()
Dim iErr As Integer
iErr = moProjAdmin.getActProj(msActProjName)
If iErr <> 0 Then
MsgBox "Cannot access the current project!", _
vbOKOnly + vbCritical, _
"getActProj"
End If
End Sub

Assignment

COM