Compare$(String1,String2,0)

For questions and comments on programming in general. And for any items that don't fit into the forums below.

Moderators: Benj, Mods

Post Reply
RM2012
Posts: 17
Joined: Wed Jul 18, 2012 3:42 pm
Has thanked: 3 times
Contact:

Compare$(String1,String2,0)

Post by RM2012 »

Hi
has anyone had issues with Compare$(,,) function used in flowcode 5. It seems no matter wahat the result remains the same (Valid).

Thanks,
Rick

User avatar
JonnyW
Posts: 1230
Joined: Fri Oct 29, 2010 9:13 am
Location: Matrix Multimedia Ltd
Has thanked: 63 times
Been thanked: 290 times
Contact:

Re: Compare$(String1,String2,0)

Post by JonnyW »

Hello. This is an issue with the v5.2 build. Any other version will work correctly - we are hoping to release a PIC v5.4 by the end of the week that will fix this for PIC users.

The issue is simulation only.

Cheers,

Jonny

RM2012
Posts: 17
Joined: Wed Jul 18, 2012 3:42 pm
Has thanked: 3 times
Contact:

Re: Compare$(String1,String2,0)

Post by RM2012 »

Thankyou
I will check back for an update Nextweek.

jethronull
Posts: 30
Joined: Tue Dec 04, 2012 4:03 am
Has thanked: 1 time
Contact:

Re: Compare$(String1,String2,0)

Post by jethronull »

I have a similar problem. In my case I get 32 as a result if the case sensitivity is set to 1 and 255 when 0. And this is with two input strings that are equal but not case identical. Just checked my version which is the latest (5.5). Replacing the string variables with literals of the same values works fine. Seems like there is still a bug with the compare$ function.
Jon/JethroNull

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Compare$(String1,String2,0)

Post by Benj »

Hello,

Could you please post up an example of this problem and I will look into it for you.

Post Reply