COM - CheckConfigFile()
Checks the config file.
Synopsis
HRESULT CheckConfigFile([in] BSTR sConfigFile, [in] int iDisplayErrors, [out, retval] int* iError);
Parameter
Parameter | Description |
---|---|
sConfigFile | The config file that is checked. |
iDisplayErrors | Shows errors in a message box. |
iError | Error status. |
Description
This function checks the config file for errors as missing path specifications. If the parameter iDisplayErrors is unequal to 0, possible errors are shown in a message box.
EXAMPLe
(See ComSample.xls, CComSample)
Public Sub CheckConfigFile()
Dim iErr As Integer
If Len(msConfigFile) Then
iErr = moProjAdmin.CheckConfigFile(msConfigFile, True)
If iErr <> 0 Then
MsgBox "Die Config- Datei ist fehlerhaft!", _
vbOKOnly + vbCritical, _
"CheckConfigFile"
End If
End If
End Sub
Assignment
COM