no exit sub

slydog43

Member
Licensed User
Longtime User
there is no support for an "Exit sub", any plans to.

Also what about functions, ie a sub that returns a value
 

Omar

Member
Licensed User
Longtime User
Sorry for bringing up an old thread but I found a recent issue which I wanted to confirm.

I am working with subs and found that even after I use return to send back a value the code following the Return function is still executing.

Should this be happening?

I thought that once the Return function is called the sub is exited immediately.
 
Upvote 0

Omar

Member
Licensed User
Longtime User
Thanks Erel.

That is what I thought also, not sure why this is happening but I will check the code again later today.
 
Upvote 0

netsistemas

Active Member
Licensed User
Longtime User
Be careful, if you include a RETURN in debug mode, you can get error in internal java parser. Stop, and run your app again.
 
Upvote 0
Top