Page 1 of 1

Compare string Function

Posted: Tue Jun 04, 2013 3:44 pm
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 350 times

Re: Compare string Function

Posted: Wed Jun 05, 2013 10:53 am
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: