SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
OnErrorGoto Question

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
OnErrorGoto Question
Author Message
~Joe



Joined: 18 Dec 2003
Posts: 42

Post OnErrorGoto Question Reply with quote

aey,

In JAL, does the OnErrorGoto statement work the same way as it does in VB. In VB, if I define the “OnError Goto” any time an error is encountered VB goes to the error routine.

Does the 24x7 JAL “OnErrorGoto” work similar to the VB "OnError GOTO". Or is it specific to the section of code immediately following the statement?

IF I define a statement like this:

OnErrorGoTo ErrorRoutine

Block1:
statement-block1
Block2:
statement-block2
Block 3:
statement-block3
Block5:
statement-block5

ErrorRoutine:
Case 1
….
Case 10
endcase

Will 24x7 OnErrorGoto catch an error generated in Block5 and jump to the ErrorRoutine?

~Joe

Wed Jan 28, 2004 2:08 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7969

Post Re: OnErrorGoto Question Reply with quote

Yes, it is similar to VB implementation. This setting is active until some other OnError... statement is executed which overrides the previous setting. I really mean executed, not just coded somewhere below in script.

: aey,

: In JAL, does the OnErrorGoto statement work the same way as it does in VB. In
: VB, if I define the “OnError Goto” any time an error is encountered VB
: goes to the error routine.

: Does the 24x7 JAL “OnErrorGoto” work similar to the VB "OnError
: GOTO". Or is it specific to the section of code immediately following
: the statement?

: IF I define a statement like this: OnErrorGoTo ErrorRoutine

: Block1: statement-block1
: Block2: statement-block2
: Block 3: statement-block3
: Block5: statement-block5

: ErrorRoutine: Case 1
: ….
: Case 10
: endcase

: Will 24x7 OnErrorGoto catch an error generated in Block5 and jump to the
: ErrorRoutine?

: ~Joe

Wed Jan 28, 2004 2:25 pm View user's profile Send private message
~Joe



Joined: 18 Dec 2003
Posts: 42

Post Re: OnErrorGoto Question Reply with quote

Okay, thank you.

The problem we are having was our script. It is too big. I think this is why the OnErrorGoto was not working the way we waned.

~Joe

~Joe
: Yes, it is similar to VB implementation. This setting is active until some
: other OnError... statement is executed which overrides the previous
: setting. I really mean executed, not just coded somewhere below in script.

Thu Jan 29, 2004 4:29 pm 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.