D:
Expand|Select|Wrap|Line Numbers
- Public Function gf_ChkMkDir(iDirPath As String, iDirName As String) As Boolean
- Dim MyPath As String
- gf_ChkMkDir = False
- MyPath = Dir(iDirPath & "\" & iDirName & "\", vbDirectory)
- If MyPath = vbNullString Then
- MkDir (iDirPath & "\" & iDirName)
- End If
- gf_ChkMkDir = True
- End Function
- Public Function g_OnError(ByVal FileDesc As Integer, ByVal ErrNumber As Double, ByVal ErrDescription As String, Optional ByVal Status As String)
- If Status = "" Then
- MsgBox ErrDescription & " - " & Err.Description
- Print #FileDesc, ErrDescription & " - " & Err.Description
- End
- Else
- Print #FileDesc, ErrDescription & " - " & Err.Description
- End If
- Close #FileDesc
- End Function