Hello,
is it possible to update flowcode macro "NumberToHex$" with check box,
with or without adding prefix? Without prefix you ca display more chars in
LCD display.
regards
Dirk
"NumberToHex$" with check box
Moderator: Benj
- 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: "NumberToHex$" with check box
Hi Dirk,
What about using the Right$ function to chop the "0x" off the beginning of the string before you display it?
What about using the Right$ function to chop the "0x" off the beginning of the string before you display it?
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
-
- Posts: 116
- Joined: Wed Feb 08, 2012 2:45 pm
- Has thanked: 7 times
- Been thanked: 11 times
- Contact:
Re: "NumberToHex$" with check box
Hello Benj,
i don't know what you mean, but i think that is exactly what
i need. Wo do I find that? Do you have an example?
regards
Dirk
i don't know what you mean, but i think that is exactly what
i need. Wo do I find that? Do you have an example?
regards
Dirk
-
- Posts: 116
- Joined: Wed Feb 08, 2012 2:45 pm
- Has thanked: 7 times
- Been thanked: 11 times
- Contact:
Re: "NumberToHex$" with check box
Hello Benj,
I got it now. I didn't know that yet but I found it.
If the choice can be made immediately when converting,
whether with prefix or without prefix this is certainly less code,
or am I wrong?
thank you
Dirk
I got it now. I didn't know that yet but I found it.
If the choice can be made immediately when converting,
whether with prefix or without prefix this is certainly less code,
or am I wrong?
thank you
Dirk
- 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: "NumberToHex$" with check box
Hi Dirk,
You are right that adding the option to the function would certainly be less code on your part. However it's a change to the main Flowcode executable and the change will not be as minor as you think. It has to work with all the parsing code, with the simulation and with the generated embedded C code etc. So it's a great idea and I like it but it won't be a quick thing and you could be waiting months for us to roll it out due to other commitments. Hence the suggested workaround for now.whether with prefix or without prefix this is certainly less code, or am I wrong?
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