"NumberToHex$" with check box

Moderator: Benj

Post Reply
DirkB
Posts: 116
Joined: Wed Feb 08, 2012 2:45 pm
Has thanked: 7 times
Been thanked: 11 times
Contact:

"NumberToHex$" with check box

Post 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

User avatar
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

Post by Benj »

Hi Dirk,

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

DirkB
Posts: 116
Joined: Wed Feb 08, 2012 2:45 pm
Has thanked: 7 times
Been thanked: 11 times
Contact:

Re: "NumberToHex$" with check box

Post 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

DirkB
Posts: 116
Joined: Wed Feb 08, 2012 2:45 pm
Has thanked: 7 times
Been thanked: 11 times
Contact:

Re: "NumberToHex$" with check box

Post 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

User avatar
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

Post 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.

Post Reply