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?
Compare string Function
Moderator: Benj
-
- Posts: 39
- Joined: Tue Jun 07, 2011 12:37 pm
- Has thanked: 12 times
- Been thanked: 5 times
- Contact:
Re: Compare string Function
All seems to work now, I think it was a problem with sending leading zero's. Problem was in hardware not simulator.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?