Some servoy unanswered question from a FMP guy : halt script

How to replace Filemaker’s :

Halt script ?

This is not the same as exit script, and the return method don’t work, because the script continues after the return method.
Is is an unresolved topic on the forum.

so how to stop the execution of a method

I can not help you with this due to my very brief FM experience but you will find this link of use I guess: http://www.servoy.com/generic.jsp?mt=39 … omy_id=579

There are also some excellent FM things to find in that section if I am correct.

Hope this helps

Hi Vince,

This method is recursive?
Can you post this method?

Basically this is


Method1 :

Try

catch

call Error_method

end try

Error_method :

I would likle the error method to stop execution of method 1

--------------
Method1 :

Try

catch

 call Error_method
 return;


end try
----------

Just add a return after you call the method. This will terminate method 1.

Hope this helps.

Thanks it helps. Now we can say we have a “halt script” equivalent

Vince,

At any time you can also just say: return;

Will stop the current method.