Results 1 to 7 of 7

Thread: HELP!!!!!!! VB Error codes.... Is there a list

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2000
    Location
    Panama city Rep of Panama
    Posts
    2

    Talking

    Please someone tell me ther is a list explaning what every #$%#%&* error code means, I know it sound relly boring, however this woud be very useful, for error traping,testing and application development.
    If there is no such list lets make one!

  2. #2
    Member
    Join Date
    Oct 2000
    Location
    Bath, England
    Posts
    45
    yes. there are lists of what the error codes mean on any MSDN CD.
    SJRigby

  3. #3
    Hyperactive Member JazzBass's Avatar
    Join Date
    Jun 1999
    Posts
    393

    Look Here

    Hi,

    I agree with the post above.

    Specifically you can look at:

    VB documentation
    - Reference
    - Trappable Errors

    Hope that helps.
    JazzBass
    JazzBass
    In the .NET era
    Trying to remember VB6
    Progress:
    XP Professional @ Home
    and @ the Office

  4. #4
    Fanatic Member
    Join Date
    Feb 2000
    Location
    The Netherlands
    Posts
    715
    Oetje
    [email protected]
    93606776
    Visual Basic 6, Windows 2000

    Never pet a burning dog

  5. #5
    Fanatic Member
    Join Date
    Oct 2000
    Location
    London
    Posts
    1,008
    You could also create an Error object, set the error level in a loop and examine the associated text for each value.

    No I can't remember how to do it - how about it Matthew Gates, kedaman, Yonatan, HeSaidJoe etc....

    Cheers,

    Paul.
    Not nearly so tired now...

    Haven't been around much so be gentle...

  6. #6
    _______ HeSaidJoe's Avatar
    Join Date
    Jun 1999
    Location
    Canada
    Posts
    3,946

    <?>


    this will only trap vb errors so it the error is
    produced by something outside you will get nothing
    Code:
    'get error source and description
    
    Private Sub Command1_Click()
    
    Dim Msg$
    
    ' If an error occurs, construct an error message
    'hardcode the error number for test purpose
    
        Err.Number = 20520
    
    If Err.Number <> 0 Then
       Msg$ = "Error # " & Err.Number & " was generated by " _
             & Err.Source & Chr(13) & Err.Description
       MsgBox Msg$
    End If
    
    End Sub
    "A myth is not the succession of individual images,
    but an integerated meaningful entity,
    reflecting a distinct aspect of the real world."

    ___ Adolf Jensen

  7. #7
    Fanatic Member
    Join Date
    Oct 2000
    Location
    London
    Posts
    1,008
    I thought that was what was wanted<sigh>

    P.
    Not nearly so tired now...

    Haven't been around much so be gentle...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width