home *** CD-ROM | disk | FTP | other *** search
- Attribute VB_Name = "Errors"
- Option Explicit
- Const mnErrDeviceUnavailable = 68
- Const mnErrDiskNotReady = 71
- Const mnErrDeviceIO = 57
- Const mnErrDiskFull = 61
- Const mnErrBadFileName = 64
- Const mnErrBadFileNameOrNumber = 52
- Const mnErrPathDoesNotExist = 76
- Const mnErrBadFileMode = 54
- Const mnErrFileAlreadyOpen = 55
- Const mnErrInputPastEndOfFile = 62
-
- Function FileErrors() As Integer
- Dim intMsgType As Integer
- Dim strMsg As String
- Dim intResponse As Integer
- ' ╖╡╗╪╓╡ ╥Γ╥σ
- ' 0 ╗╓╕┤
- ' 1 ╗╓╕┤╧┬╥╗╠⌡╙∩╛Σ
- ' 2 ╬▐╖¿╗╓╕┤╡─┤φ╬≤
- ' 3 ╬▐╖¿╩╢▒≡╡─┤φ╬≤
- intMsgType = vbExclamation
- Select Case Err.Number
- Case mnErrDeviceUnavailable ' ┤φ╬≤ 68
- strMsg = "╔Φ▒╕▓╗┐╔╙├"
- intMsgType = vbExclamation + vbOKCancel
- Case mnErrDiskNotReady ' ┤φ╬≤ 71
- strMsg = "╘┌╟²╢»╞≈╓╨▓σ╚δ╥╗╒┼╚φ┼╠▓ó╣╪║├╟²╢»╞≈╨í├┼"
- intMsgType = vbExclamation + vbOKCancel
- Case mnErrDeviceIO ' ┤φ╬≤ 57
- strMsg = "─┌▓┐┤┼┼╠┤φ╬≤"
- intMsgType = vbExclamation + vbOKOnly
- Case mnErrDiskFull ' ┤φ╬≤ 61
- strMsg = "┤┼┼╠╥╤┬·ú¼╝╠╨°┬≡ú┐"
- intMsgType = vbExclamation + vbAbortRetryIgnore
- Case mnErrBadFileName, mnErrBadFileNameOrNumber ' ┤φ╬≤ 64 & 52
- strMsg = "╬─╝■├√╖╟╖¿"
- intMsgType = vbExclamation + vbOKCancel
- Case mnErrPathDoesNotExist ' ┤φ╬≤ 76
- strMsg = "┬╖╛╢▓╗┤µ╘┌"
- intMsgType = vbExclamation + vbOKCancel
- Case mnErrBadFileMode ' ┤φ╬≤ 54
- strMsg = "▓╗─▄╥╘┤╦└α╖├╬╩┤≥┐¬╬─╝■"
- Case mnErrFileAlreadyOpen ' ┤φ╬≤ 55
- strMsg = "╬─╝■╥╤╛¡▒╗┤≥┐¬"
- intMsgType = vbExclamation + vbOKOnly
- Case mnErrInputPastEndOfFile ' ┤φ╬≤ 62
- strMsg = "╬─╝■╙╨╥╗╕÷▓╗▒Ω╫╝╡─╬─╝■╜ß╩°▒Ω╓╛ú¼"
- strMsg = strMsg & "╗≥╞≤═╝╢┴╬─╝■╜ß╩°▒Ω╓╛╓«║≤"
- strMsg = strMsg & "╡──┌╚▌"
- intMsgType = vbExclamation + vbAbortRetryIgnore
- Case Else
- FileErrors = 3
- Exit Function
- End Select
- intResponse = MsgBox(strMsg, intMsgType, "┤┼┼╠┤φ╬≤")
- Select Case intResponse
- Case 1, 4 ' ╚╖╢¿, ╓╪╩╘ ░┤┼Ñ
- FileErrors = 0
- Case 2, 5 ' ╚í╧√, ║÷┬╘ ░┤┼Ñ
- FileErrors = 1
- Case 3 ' ╓╨╓╣ ░┤┼Ñ
- FileErrors = 2
- Case Else
- FileErrors = 3
- End Select
- End Function
-
-