2.2.3.15.42 string::WriteLine

Description

Output the string adding return and newline characters automatically.

Syntax

void WriteLine( int iDestination )

Parameters

iDestination
[input]one of enum {WRITE_SCRIPT_WINDOW, WRITE_STATUS_BAR, WRITE_OUTPUT_LOG, WRITE_MESSAGE_BOX, WRITE_COMPILER_OUTPUT};

Return

None.

Examples

EX1

void string_WriteLine_ex1()
{
    string str="Hello World";
    str.Write(WRITE_SCRIPT_WINDOW);  		//Hello World typed out to script window, cursor is at this line
    str.WriteLine(WRITE_SCRIPT_WINDOW);  	//Hello World typed out to script window , cursor is at next line
    str.WriteLine(WRITE_OUTPUT_LOG);  		//Hello World typed out to the Results Log, cursor is at next line
    str.WriteLine(WRITE_STATUS_BAR);		//Hello World typed out to status bar, cursor is at next line
    str.WriteLine(WRITE_MESSAGE_BOX);		//Hello World typed out to Message box, cursor is at next line
    str.WriteLine(WRITE_COMPILER_OUTPUT);	//Hello World typed out to compiler output, cursor is at next line
}

Remark

This member function outputs the string adding return and newline characters automatically.

See Also

string::Write

Header to Include

origin.h