Go4Expert

Go4Expert (http://www.go4expert.com/)
-   Visual Basic ( VB ) (http://www.go4expert.com/forums/visual-basic/)
-   -   Difference between End function and Exit function ? (http://www.go4expert.com/forums/difference-function-exit-function-t22752/)

realheaven 19Jul2010 08:14

Difference between End function and Exit function ?
 
what's different between End function and Exit function ?

shabbir 19Jul2010 08:46

Re: Difference between End function and Exit function ?
 
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.

realheaven 19Jul2010 09:00

Re: Difference between End function and Exit function ?
 
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

realheaven 19Jul2010 09:21

Re: Difference between End function and Exit function ?
 
i solved the case. the call function should be :
......
Dim ss As String
ss = HexString(s)
......

shabbir 19Jul2010 09:26

Re: Difference between End function and Exit function ?
 
Great to see that.


All times are GMT +5.5. The time now is 19:36.