Difference between End function and Exit function ?

realheaven's Avatar
Banned
what's different between End function and Exit function ?
0
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
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 like this
0
realheaven's Avatar
Banned
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
0
realheaven's Avatar
Banned
i solved the case. the call function should be :
......
Dim ss As String
ss = HexString(s)
......
0
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
Great to see that.