vgatext.spin Variable display reset
joethumphrey
Posts: 25
Hello all,
Using the VGA_TEXT.spin object in code I keep getting an instance when a displayed variable drops below the last character length the variables old last value is still displayed.
For instance:
Displays properly until speed drops below the last digit count.
100 fpm displays fine until it drops below that. That leaves me with the first 2 characters being updated leaving the last as it was.
Is there a way to fix this?
Thanks, Joe
Using the VGA_TEXT.spin object in code I keep getting an instance when a displayed variable drops below the last character length the variables old last value is still displayed.
For instance:
text.str(string($A,12,$B,10,"Speed-fpm " )) text.dec(Card)
Displays properly until speed drops below the last digit count.
100 fpm displays fine until it drops below that. That leaves me with the first 2 characters being updated leaving the last as it was.
Is there a way to fix this?
Thanks, Joe
Comments
Then you could do: text.str(num.decf(card,4))
Thanks everyone.
How do I mark this as solved?