|Help: function nxtDisplayString
|Page 1 of 1|
|Author:||zzz [ Mon Feb 25, 2008 5:35 am ]|
|Post subject:||Help: function nxtDisplayString|
I'm using RobotC 1.05, with firmware 7.15.
Why cant the following code works?
int i = 0;
nxtDisplayString (i, "Some text");
I want to display an arrow on nxt screen when user navigate through a list of selection. Something like:
I want to exploit the function nxtDisplayString() on the fact that I only need to replace the first few characters (with blanks as the user move away from a selection, and '->' when user move to a selection).
|Author:||tfriez [ Mon Feb 25, 2008 4:20 pm ]|
I recommend you upgrade to ROBOTC for Mindstorms 1.10, which is currently available on the website. This is a free upgrade and has greater string/display capabilities than 1.05 has.
Your code doesn't seem to work in 1.10 because it's expected a type "compileConst short" for the variable, whereas you declared a type "int".
This is a bug and I'll take a look at making the DisplayString take an int as well... but in the meantime you can try this:
|Page 1 of 1||All times are UTC - 5 hours [ DST ]|
|Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group