Page 1 of 1

"NumberToHex$" with check box

Posted: Mon Feb 04, 2019 11:37 am
by DirkB
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

Re: "NumberToHex$" with check box

Posted: Mon Feb 04, 2019 11:41 am
by Benj
Hi Dirk,

What about using the Right$ function to chop the "0x" off the beginning of the string before you display it?

Re: "NumberToHex$" with check box

Posted: Mon Feb 04, 2019 12:48 pm
by DirkB
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

Re: "NumberToHex$" with check box

Posted: Mon Feb 04, 2019 6:11 pm
by DirkB
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

Re: "NumberToHex$" with check box

Posted: Tue Feb 05, 2019 4:18 pm
by Benj
Hi Dirk,
whether with prefix or without prefix this is certainly less code, or am I wrong?
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.