Equivilent of Try (vb08) in Vb6

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • daniel aristidou
    Contributor
    • Aug 2007
    • 494

    Equivilent of Try (vb08) in Vb6

    Hi guys is there an equivilent of try (vb08) in vb6
    If you dont know what try does in vb08 ... it tries to do something but if there is an error it simply ignores it.
    Try also contains commands like catch and finally.
    It solves many problems of programming for vb08 so i wondered if it did exist in vb6 cuase i cant seem to find it.
    If vb6 had a try function it would solve many problems posted in the forum.

    Daniel(~_~)
  • QVeen72
    Recognized Expert Top Contributor
    • Oct 2006
    • 1445

    #2
    Hi,

    There is no Equivalent of Try...Catch" block in VB6.
    That concept was first introduced in VB.net 2005.
    In VB6, all you have is "On Error GoTo" "On Error Resume Next", "On Error Goto 0" ..Statements

    REgards
    Veena

    Comment

    • lotus18
      Contributor
      • Nov 2007
      • 865

      #3
      Originally posted by QVeen72
      Hi,

      There is no Equivalent of Try...Catch" block in VB6.
      That concept was first introduced in VB.net 2005.
      In VB6, all you have is "On Error GoTo" "On Error Resume Next", "On Error Goto 0" ..Statements

      REgards
      Veena
      Hi

      Do these statements are still present in vb 2005? or in vb08?

      Comment

      • QVeen72
        Recognized Expert Top Contributor
        • Oct 2006
        • 1445

        #4
        Hi Lotus,

        Yes all "On Error" statements are still supported by all versions of VB.net
        Take a look @ this links :
        On Error

        Regards
        Veena

        Comment

        Working...