FlashFXP Forums

FlashFXP Forums (https://oss.azurewebsites.net/forum/)
-   Programming (https://oss.azurewebsites.net/forum/community-chatter/programming/)
-   -   Stop subsequent scripts from running (https://oss.azurewebsites.net/forum/community-chatter/programming/7825-stop-subsequent-scripts-running.html)

laShan 02-13-2004 09:33 AM

Stop subsequent scripts from running
 
If I have several scripts assigned to, let's say, wipe, how can I make the first one halt the chain of events? I tried different return configurations without any apparent luck.

Harm 02-13-2004 09:36 AM

If the first one returns non-zero, the others aren't called.

laShan 02-13-2004 09:43 AM

That's just the thing, they are. Either I'm doing something really weird, or there's some sort of issue. Shouldn't the following stop the process?

iputs "Command aborted!"
return 1

Harm 02-13-2004 09:56 AM

If you're using itcl, you could try that:
Code:

iputs "Error message"
global ioerror; set ioerror 1; return 1


laShan 02-13-2004 09:59 AM

Thanks! That did the trick :)


All times are GMT -5. The time now is 06:28 AM.

Powered by vBulletin® Version 3.8.11 Alpha 3
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Parts of this site powered by vBulletin Mods & Addons from DragonByte Technologies Ltd. (Details)