SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Loop failure on IsEqual

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
Loop failure on IsEqual
Author Message
Sotiris Georgiou



Joined: 04 Nov 2004
Posts: 18

Post Loop failure on IsEqual Reply with quote

Hi,

I get a Type Mismatch error using the
following code:

-------------------------
IsEqual( bins, "", done )

LoopUntil( done, ENDLOOP )

GetToken( ",", bins, global.bin )

messagebox global.bin

messagebox bins

IsEqual( bins, "", done )

ENDLOOP:
-------------------------

bins is a string which contains:

"411111, 411112, 411113, 411114"

The IsEqual function fails on the last round
of the loop when bins contains "411114".

Does anyone know why?

Thanks in advance
Sotiris

Mon Nov 08, 2004 12:10 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7969

Post Re: Loop failure on IsEqual Reply with quote

This is because the last value is converted to a number and then compared against a empty string. A simply solution to that is to add a trailing extra coma at the end of the list
"411111, 411112, 411113, 411114,"

to the list

: Hi,

: I get a Type Mismatch error using the
: following code: -------------------------
: IsEqual( bins, "", done )

: LoopUntil( done, ENDLOOP )

: GetToken( ",", bins, global.bin )

: messagebox global.bin

: messagebox bins

: IsEqual( bins, "", done )

: ENDLOOP: -------------------------

: bins is a string which contains: "411111, 411112, 411113, 411114"

: The IsEqual function fails on the last round
: of the loop when bins contains "411114".

: Does anyone know why?

: Thanks in advance
: Sotiris

Mon Nov 08, 2004 12:37 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.