1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice

Difference between End function and Exit function ?

Discussion in 'Visual Basic ( VB )' started by realheaven, Jul 19, 2010.

  1. realheaven

    realheaven Banned

    Joined:
    Jul 19, 2010
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    what's different between End function and Exit function ?
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,276
    Likes Received:
    364
    Trophy Points:
    83
    End function is the last statement of the function where as if you wish to end the function somewhere during some conditional exit function should be used.
     
  3. realheaven

    realheaven Banned

    Joined:
    Jul 19, 2010
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    Thanks a lot!
    i'm writing a simple application by VB and there is a fault. I appreciate any help.
    in my code i use a function :
    Private Function HexString(ByVal EvalString As String) As String
    ......
    end function

    and i call it for specified purpose :
    ......
    s = HexString( Byval EvalString As string)
    .....
    but the VB warms me an error "expression expected" @ Byval . i don't know how to correct it
     
  4. realheaven

    realheaven Banned

    Joined:
    Jul 19, 2010
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    i solved the case. the call function should be :
    ......
    Dim ss As String
    ss = HexString(s)
    ......
     
  5. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,276
    Likes Received:
    364
    Trophy Points:
    83
    Great to see that.
     

Share This Page