home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 27 / IOPROG_27.ISO / SOFT / ADSDK.ZIP / ResourceKit / ADsError / ADsErrClient.frm (.txt) next >
Encoding:
Visual Basic Form  |  1999-04-13  |  773 b   |  27 lines

  1. VERSION 5.00
  2. Begin VB.Form Form1 
  3.    Caption         =   "Form1"
  4.    ClientHeight    =   3195
  5.    ClientLeft      =   60
  6.    ClientTop       =   345
  7.    ClientWidth     =   4680
  8.    LinkTopic       =   "Form1"
  9.    ScaleHeight     =   3195
  10.    ScaleWidth      =   4680
  11.    StartUpPosition =   3  'Windows Default
  12. Attribute VB_Name = "Form1"
  13. Attribute VB_GlobalNameSpace = False
  14. Attribute VB_Creatable = False
  15. Attribute VB_PredeclaredId = True
  16. Attribute VB_Exposed = False
  17. Private Sub Form_Load()
  18. Set adsErr = CreateObject("ADsError")
  19. On Error GoTo ReportErr
  20. Set rec = GetObject("LDAP://DC=ArcadiaBay, DC=Com")
  21. '.... more code here....'
  22. Exit Sub
  23. ReportErr:
  24.   Debug.Print Err.Number
  25.   MsgBox adsErr.GetErrorMessage(Err.Number)
  26. End Sub
  27.