COM - ProjName2ConfigFile()

Returns the config file of the project.

Synopsis

HRESULT ProjName2ConfigFile([in] BSTR sProjName, [out] BSTR* sConfigFileName, [out, retval] int* iError);

(ProjAdminAuto)

HRESULT ProjName2ConfigFile([in] BSTR sProjName, [out] VARIANT* sConfigFileName, [out, retval] int* iError);

Parameter

Parameter Description
sProjName The project name
sConfigFileName The config file
iError Error status

Description

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 ProjName2ConfigFile() Dim iErr As Integer

Public Sub ProjName2ConfigFile()
Dim iErr As Integer
If Len(msActProjName) Then
iErr = moProjAdmin.ProjName2ConfigFile(msActProjName, msConfigFile)
If iErr <> 0 Then
MsgBox "Cannot find config file!", _
vbOKOnly + vbCritical, _
"ProjName2ConfigFile"
End If
End If
End Sub

Assignment

COM