Concept: nxtDisplayString( nLineNumber , sFormatString )

Printer-friendly version


RobotC Element Type: Function

Usage: Write Text to the NXT screen

Syntax Example: nxtDisplayString( [int] line , [string] content );

task main {


  nxtDisplayString(1,"Hello World");


Note: This function only affects pixels that fall within the length of the content. If you write a long string, followed by a short string on the same line.  The end of the longer string will remain on the sceen. Example: "Hello World" -> "Howdy" = "Howdy World"