Exit a sub

YoungHarry

Member
Licensed User
Longtime User
How do I get out of a sub before "End Sub"?

For example:

If x = 0 OR y = 0 OR z = 0 Then
Msgbox("x, y and z diameter are required.","Not Enough Data")
End If

In VB6 we would put "Exit Sub" before the "End If". This doesn't work in basic4android, it just keeps going, and gives a wron answer or error.

Thanks
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…