In C# if you wanted to return out of a function you could do:
If (Something == True)
{
//Message Box
Return;
}
Else
{
// Do nothing
}
How would one do this is VB 6?
In VB6, you write
FunctionName = ReturnValue
Yes, seriously.
To stop execution of a function, use Exit Function (or Exit Sub)
Return statement in VB6 relates to the GoSub statement, which was dropped for VB.Net. Use of GoSub is frowned on in VB6.Return statement without any GoSub.