Navigation:  thinBasic Modules > Console >

Console_WriteLine

Previous pageReturn to chapter overviewNext page

 

Description

 

Write text followed by carriage return and line feed to the console screen.

 

Syntax

 

Console_WriteLine ( sText [, sText2 [, ...]] )

 

Returns

 

Return a number

If the function succeeds, the return value is nonzero and is the number of bytes written.

If the function fails, the return value is zero.

 

Parameters

 

Name

Type

Optional

Meaning

sText

String

No

The text to print

 

Remarks

 

Text is written from the current cursor position and with the current attribute.

This function is similar to Console_Write except that the cursor position is always moved at the beginning of new line.

Console_PrintLine is an alias of Console_WriteLine

 

Parenthesis are optional.

 

Restrictions

 

Alias

 

This function can be aliases as: PRINTL

 

See also

 

Console Module, Console_Read, Console_Write, StdOut

 

Examples

 

Console_WriteLine("Hello world")

 

© 2004-2008 thinBasic. All rights reserved. Version 1.7.0.0 Web Site: http://www.thinbasic.com