Results 1 to 7 of 7
  1. #1

    Post error handler (vb6)


    halo mga istoryaniks

    kinsay kahibawo sa code sa error handler
    ako unta ibutang sa ako project

    i need ure knowledge

  2. #2
    Elite Member
    Join Date
    Aug 2008
    Posts
    1,053
    Blog Entries
    1
    What funny language is this?

    PHP Code:
    On Error Goto ErrorHandler 
    ..
    Exit 
    Sub
    ..
    End Sub
    .. 

    PHP Code:
    try {
    ...
    throw 
    Exception()
    ...
    } catch( 
    Exception Error )
    {
    ...
    ...


    PHP Code:
    try:
        print 
    hexs(3358)
    except:
        if 
    NameError:
            try:
                print 
    "DIE!"
            
    finally:
                print 
    "*****!" 

    a lot of things you can do in handling errors, Most of PL nowadays have this features built on them, and you got to use this properly, especially if you are working on a serious DB, as runtime errors may corrupt your database or external files.

  3. #3
    wala pa ko kahibawo ana php

    unsa mana php pareha ra na sa vb?

    vb6 pa

    i learning pa sa vb6

    project man gud ni namo

  4. #4
    Elite Member
    Join Date
    Aug 2008
    Posts
    1,053
    Blog Entries
    1
    the first example is a VB code

  5. #5
    Mark is right..the 1st sample is a VB code..this example is a private sub.

    Private Sub Test()
    On Error GoTo ErrHandler
    ...
    Exit Sub
    ErrHandler:
    ...
    End Sub

  6. #6

    Default vb

    try catch mas maayu..

    Try
    ur codes....(note: everytime naai mkt.an error mu ambak xa ad2 sa catch..)
    Catch Ex as Exception
    msgbox ex.ToString (something n.ana..)
    End Try

    Pwd pd apilan og Finally para patyun imng mga objects or e dispose. something like dat =)
    e.g.

    Try
    ur codes....
    Catch Ex as Exception
    msgbox ex.ToString (something n.ana..)
    Finally
    object = nothing (sample ra ni hehe)
    End Try

  7. #7
    ka mga bryt ba ninyo ug vb.

  8.    Advertisement

Similar Threads

 
  1. STOP: c0000221 Unknown Hard Error
    By etgo in forum Computer Hardware
    Replies: 13
    Last Post: 04-13-2012, 06:31 PM
  2. run time error in vb6
    By reyarita in forum Programming
    Replies: 14
    Last Post: 04-14-2011, 05:32 AM
  3. installing Xp, system halt, error occur.
    By etgo in forum Computer Hardware
    Replies: 34
    Last Post: 10-12-2010, 06:58 AM
  4. No Error!! But cant Update in VB6 Help pls..
    By ventura in forum Programming
    Replies: 17
    Last Post: 11-04-2008, 02:14 PM
  5. got error 127 from table handler...using myqsl 4.0.12
    By emokidstuff in forum Programming
    Replies: 4
    Last Post: 08-04-2006, 11:41 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
about us
We are the first Cebu Online Media.

iSTORYA.NET is Cebu's Biggest, Southern Philippines' Most Active, and the Philippines' Strongest Online Community!
follow us
#top