SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
BUG ? joblist output and loops

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
BUG ? joblist output and loops
Author Message
Eric Davis



Joined: 31 Jan 2005
Posts: 54

Post BUG ? joblist output and loops Reply with quote

Using the JOBLIST function to return a listing of comma seperated job id's to a string..

I then use a LOOPUNTIL loop, and check for when the comma seperated list is equal to ""

since this is a listing of numbers.. when the joblist string contains only ONE value, 24x7 no longer considers this value as a string, but as a number..

giving me a type mismatch error when i compare to ""

specifically casting to a string on each iteration has no affect. thoughts on this loop ending properly ? Why doesn't 24x7 keep the type as a string as its specificaly (and initially) cast to ?

Wed Oct 12, 2005 9:48 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7955

Post Re: BUG ? joblist output and loops Reply with quote

You can use the Length statement instead of comparing to empty string. For example

Length my_string, len
If len, DO_ONE, DO_TWO

: Using the JOBLIST function to return a listing of comma seperated job id's to
: a string..

: I then use a LOOPUNTIL loop, and check for when the comma seperated list is
: equal to ""

: since this is a listing of numbers.. when the joblist string contains only
: ONE value, 24x7 no longer considers this value as a string, but as a
: number..

: giving me a type mismatch error when i compare to ""

: specifically casting to a string on each iteration has no affect. thoughts on
: this loop ending properly ? Why doesn't 24x7 keep the type as a string as
: its specificaly (and initially) cast to ?

Wed Oct 12, 2005 10:24 am View user's profile Send private message
JONE ERASITO



Joined: 07 Mar 2006
Posts: 1

Post Re: BUG ? joblist output and loops Reply with quote

: You can use the Length statement instead of comparing to empty string. For
: example

: Length my_string, len
: If len, DO_ONE, DO_TWO
FUNCTION OF JOBLIST

Tue Mar 07, 2006 5:54 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7955

Post Re: BUG ? joblist output and loops Reply with quote

What did you want to ask?

: FUNCTION OF JOBLIST

Tue Mar 07, 2006 7:34 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.