SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Return command in script library

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
Return command in script library
Author Message
Steve Silberberg



Joined: 14 Aug 2002
Posts: 14

Post Return command in script library Reply with quote

This should be an obvious one.

When I step through a script library call in the
debugger, the variable 'same_day' is set to false.
However the statement

return same_day

acts as a no-op. Execution just continues on the
next line. What am I missing?
Thanks,
Steve

Tue Sep 17, 2002 11:33 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7955

Post Re: Return command in script library Reply with quote

Something is wrong with the debugger or you make an invalid call. For example
your user-defined statement has no return value, [None] specified in the statement definition and at the same time the job you are debugging is configured to ignore all errors or in the script you used OnErrorResumeNext call to suppress run-time errors.
In such case the "return same_day" call leads to an error and the line is ignored.

: This should be an obvious one.

: When I step through a script library call in the
: debugger, the variable 'same_day' is set to false.
: However the statement

: return same_day

: acts as a no-op. Execution just continues on the
: next line. What am I missing?
: Thanks,
: Steve

Tue Sep 17, 2002 11:51 am View user's profile Send private message
Steve Silberberg



Joined: 14 Aug 2002
Posts: 14

Post Re: Return command in script library Reply with quote

I wouldn't be surprised if the debugger is bad. I can't seem to set breakpoints and if I get the popup that says there's and error, continue anyway?, and I click yes, nothing happens. Suggestions?

: Something is wrong with the debugger or you make an invalid call. For example
: your user-defined statement has no return value, [None] specified in the
: statement definition and at the same time the job you are debugging is
: configured to ignore all errors or in the script you used
: OnErrorResumeNext call to suppress run-time errors.
: In such case the "return same_day" call leads to an error and the
: line is ignored.

Wed Sep 18, 2002 10:31 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7955

Post Re: Return command in script library Reply with quote

Can you reproduce this problem in another job?

Make sure the job does not have "ignore errors" option enabled.

: I wouldn't be surprised if the debugger is bad. I can't seem to set
: breakpoints and if I get the popup that says there's and error, continue
: anyway?, and I click yes, nothing happens. Suggestions?

Wed Sep 18, 2002 11:14 am View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.