View unanswered posts | View active topics It is currently Tue Sep 02, 2014 5:14 am






Reply to topic  [ 3 posts ] 
Print Line 
Author Message
Rookie

Joined: Wed Oct 24, 2012 9:32 pm
Posts: 1
Post Print Line
Is there a way to show a print line in robotC?


Wed Oct 24, 2012 9:41 pm
Profile
Novice

Joined: Sun Oct 21, 2012 10:01 pm
Posts: 76
Post Re: Print Line
Yeah; you can use nxtDisplayTextLine(nLineNumber, sFormatString, ...).

The line number is between 0 and 7 (0 being the top line of the screen). Use string formatting to insert integers and floating point decimals. For example, running this line of code ...
Code:
nxtDisplayTextLine(0, "This is a one: %d", 1);

... would result in ...
Code:
This is a one: 1


There are a lot of other functions for displaying to the screen. Go to Window > Menu Level > Super User. This will give you more detailed preferences and show more commands in the pane on the left. In that pane, check out the stuff under the Display tab.

You should also check out the RobotC help page on Display Functions.


Wed Oct 24, 2012 10:56 pm
Profile
Guru
User avatar

Joined: Sun Nov 15, 2009 5:46 am
Posts: 1347
Post Re: Print Line
There is also writeDebugStream that prints to the debug stream.


Thu Oct 25, 2012 2:23 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  



Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.