Y YoungHarry Member Licensed User Longtime User Jan 27, 2012 #1 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
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
klaus Expert Licensed User Longtime User Jan 27, 2012 #2 Use the keyword Return. Best regards. Upvote 0
nfordbscndrd Well-Known Member Licensed User Longtime User Jan 28, 2012 #4 This is covered in the post Converting VB6 To B4A. As a VB6 programmer, you may want to look at the other items discussed there as well. Upvote 0
This is covered in the post Converting VB6 To B4A. As a VB6 programmer, you may want to look at the other items discussed there as well.