Hi Ben,
I hoped that you had a chance to fix this annoying bug in the latest versions.
The issue is if the string concatenation statement contains more then two items:
In my example the "Var_name" is an Parameter and in this example is set to "This is a test 1234567823 Var:" , the "Var" =23 and it is also a parameter
I created a macro to help me "print" some debug values on UART. I'm using the concatenation of strings:
.Stemp = ToString$ (.Var)
.Stemp = .Var_name + .Stemp
.Stemp = "@Debug_Rx:" + .Stemp +"\r\n"
When I run it I get the following:
@Debug_Rx: This is a\r\n
Note that the . Stemp in the middle in the last line is cut to 20 characters.
However, if I declare it like this:
.Stemp = ToString$ (.Var)
.Stemp = .Var_name + .Stemp
.Stemp = "@Debug_Rx:" + .Stemp
.Stemp = .Stemp + "\r\n"
When I run it I get the expected result:
@Debug_Rx: This is a test 12345678 Var:23\r\n
Can this be fixed?
Regards,
Igor
string concatenation bug
Moderator: Benj
-
- Posts: 78
- Joined: Mon Jul 31, 2017 11:14 am
- Has thanked: 7 times
- Been thanked: 13 times
- Contact:
- 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: string concatenation bug
Hi Igor,
It's not something I can fix I'm afraid it's very much down in the detail of the Flowcode executable core code generation. We do have it as a task on our to do list so I'll see if I can bump up the priority a bit for you.
It's not something I can fix I'm afraid it's very much down in the detail of the Flowcode executable core code generation. We do have it as a task on our to do list so I'll see if I can bump up the priority a bit for you.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel