home *** CD-ROM | disk | FTP | other *** search
/ Programmer Plus 2007 / Programmer-Plus-2007.iso / Programming / Visual Basic new SourceCode and Projects / Easy HTML editor / htmleazymodule.bas < prev    next >
Encoding:
BASIC Source File  |  2000-04-24  |  659 b   |  24 lines

  1. Attribute VB_Name = "htmleasymodule"
  2. Public Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
  3.  
  4. Public Function FileExists(strfile As String) As Boolean
  5. If Dir(strfile) <> "" Then
  6. FileExists = True
  7. Else
  8. FileExists = False
  9. End If
  10. End Function
  11. Sub ErrHandler()
  12.     ErrDesc = Err.Description
  13.     ErrNum = Err.Number
  14.     Beep
  15.     MsgBox "Error number " & ErrNum & " has occured because: " & _
  16.     ErrDesc, vbCritical, "Error"
  17.     Exit Sub
  18.     
  19. End Sub
  20.  
  21.  
  22.  
  23.  
  24.