Compare string Function

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 4.
To post in this forum you must have a registered copy of Flowcode 4 or higher. To sign up for this forum topic please use the "Online Resources" link in the Flowcode Help Menu.

Moderator: Benj

Post Reply
Dave S
Posts: 39
Joined: Tue Jun 07, 2011 12:37 pm
Has thanked: 12 times
Been thanked: 5 times
Contact:

Compare string Function

Post by Dave S »

Hi all,

Is there a maximum length of 3 for strings to compare? The attached code works ok but if I try to compare strings 4 elements long it doesn't.
I change the number in the RS232 read string macro to 4 and (for example) string "001" to "0001".
Any ideas please?
DisplayPanel.fcf
(16.5 KiB) Downloaded 345 times

Dave S
Posts: 39
Joined: Tue Jun 07, 2011 12:37 pm
Has thanked: 12 times
Been thanked: 5 times
Contact:

Re: Compare string Function

Post by Dave S »

Dave S wrote:Hi all,

Is there a maximum length of 3 for strings to compare? The attached code works ok but if I try to compare strings 4 elements long it doesn't.
I change the number in the RS232 read string macro to 4 and (for example) string "001" to "0001".
Any ideas please?
DisplayPanel.fcf
All seems to work now, I think it was a problem with sending leading zero's. Problem was in hardware not simulator. :oops:

Post Reply