Go Back   FlashFXP Forums > >

Programming Need help with C/C++/Delphi? Ask here and make us all laugh.

Closed Thread
 
Thread Tools Rate Thread Display Modes
Old 02-13-2004, 09:33 AM   #1
laShan
Member
ioFTPD Foundation User
 
Join Date: Feb 2004
Posts: 46
Default 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.
laShan is offline  
Old 02-13-2004, 09:36 AM   #2
Harm
Too much time...
Ultimate Scripter
 
Join Date: Jul 2003
Posts: 1,430
Default

If the first one returns non-zero, the others aren't called.
Harm is offline  
Old 02-13-2004, 09:43 AM   #3
laShan
Member
ioFTPD Foundation User
 
Join Date: Feb 2004
Posts: 46
Default

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
laShan is offline  
Old 02-13-2004, 09:56 AM   #4
Harm
Too much time...
Ultimate Scripter
 
Join Date: Jul 2003
Posts: 1,430
Default

If you're using itcl, you could try that:
Code:
iputs "Error message"
global ioerror; set ioerror 1; return 1
Harm is offline  
Old 02-13-2004, 09:59 AM   #5
laShan
Member
ioFTPD Foundation User
 
Join Date: Feb 2004
Posts: 46
Default

Thanks! That did the trick
laShan is offline  
Closed Thread

Tags
chain, events, halt, return, scripts

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems with http ratnic Bug Reports 4 01-20-2003 10:07 PM


All times are GMT -5. The time now is 02:15 PM.

Parts of this site powered by vBulletin Mods & Addons from DragonByte Technologies Ltd. (Details)