Solved: Constante Byte or Integer
Posted: Fri Jun 27, 2014 4:46 pm
Hi
i only ask because i do not sure know.
because BoostC makes fail if i set a Byte in a struct in c code icon i change it from Type Byte to Type Int.
Then i allocation the menu.command to a FC byte Variable as Type Byte ( i think i must take a int variable - i will try later this )
This FC Variable i switch and compares to the FC Constante.
But this not right switch in this way.
After i set in Variable Manager the Value each Constante from 0...1 ....2.... explizit '0' ...'1'....'2'..
the switch work fine.
I ask: Which type is this Constante then if i write the value a Byte or Integer?
Is this with Value : 0 a Byte Variable?
is this with Value : '1' a Integer Variable?
i think Byte Type without Strokes, Int Type with Strokes, String Type with Double Strokes - i am right?
because i set in struct the command as a Int then i must set the constant variable explizite as a int constante by strokes ?
.. it works ..
i only what if someone can this continued i am sure
best wishes
Rudi
i only ask because i do not sure know.
because BoostC makes fail if i set a Byte in a struct in c code icon i change it from Type Byte to Type Int.
Then i allocation the menu.command to a FC byte Variable as Type Byte ( i think i must take a int variable - i will try later this )
This FC Variable i switch and compares to the FC Constante.
But this not right switch in this way.
After i set in Variable Manager the Value each Constante from 0...1 ....2.... explizit '0' ...'1'....'2'..
the switch work fine.
I ask: Which type is this Constante then if i write the value a Byte or Integer?
Is this with Value : 0 a Byte Variable?
is this with Value : '1' a Integer Variable?
i think Byte Type without Strokes, Int Type with Strokes, String Type with Double Strokes - i am right?
because i set in struct the command as a Int then i must set the constant variable explizite as a int constante by strokes ?
.. it works ..
i only what if someone can this continued i am sure
best wishes
Rudi