Results 1 to 4 of 4

Thread: vb 7.0

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2000
    Posts
    617

    Thumbs up

    FYI
    Upcoming in VB7.. and GREAT!!! (From FAQ)

    Free Threading (ability to do background processing, finally)

    t = New Thread(New Threadstart
    (AddressOf(BaseClass.Function1))

    Structured Exception Handling

    No More “On Error GoTo”!

    Sub SafeWrite()
    Try
    Open "Testfile"
    .....
    Write #1
    Catch
    Kill "Testfile"
    Finally
    Close #1
    End Try
    End Sub


  2. #2
    Fanatic Member
    Join Date
    Feb 2000
    Location
    The Netherlands
    Posts
    715
    Cool. But what's try?
    Oetje
    [email protected]
    93606776
    Visual Basic 6, Windows 2000

    Never pet a burning dog

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2000
    Posts
    617

    try



    try

    catch

    is the block


    meaning essentially (in layman's terms)


    try --- be aware of errors if they occur
    catch --- did any occur? if so ...

  4. #4
    Guest
    Example:
    Code:
    Sub SomeSub()
       ...
       Try
          'Your commands come here.
       Catch
          'If VB catches an error it will run the code in here.
       Finally
          'The final part of the Try scope.
       End Try
       ...
    End Sub

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