PrintN()
Syntax
PrintN(Text$)Description
Displays the specified string in the console and adds a new line. The length of the string should not be over 250 characters, otherwise the string will be truncated (have the end cut off). To change the current cursor position the command ConsoleLocate() should be used. To change the appearance of the string when it is printed, the command ConsoleColor() should be used.
The cursor will be moved to the start of the next line after the end of the string. If you print over the right edge of the console the text will wrap around to the left edge on the next line down. If you print off the bottom of the console window, the console window will scroll its contents up.
Parameters:
Text$ - The string which is to be displayed in the console.
Return value:
This command does not return a value.
Example:If OpenConsole() PrintN("This is quite a long string.") PrintN("You see how this one does not join onto the end of the previous one?") PrintN("That is because the cursor moves to the start of the next line after the end of the string.") PrintN("Press return to exit") Input() CloseConsole() EndIf End
Supported OS
Windows, Linux, MacOS X