OutputDocument.SetDefault

Prototypes

void SetDefault()

Parameters

None

Remarks

This method designates the LISTING output document as the default LISTING output document. The default LISTING output document is the LISTING output document to which IMLPlus routes subsequent output. If only one LISTING output document exists, it is automatically the default LISTING output document.

Example
declare OutputDocument doc1, doc2;
doc1 = OutputDocument.Create();
doc2 = OutputDocument.Create();
doc1.SetWindowPosition(  0, 50, 50, 50 );
doc2.SetWindowPosition( 50, 50, 50, 50 );

do i = 1 to 200;
    doc1.SetDefault();
    /* simulated work stream #1 */
    x = T( ranuni( 1:5 ) );
    print x;

    doc2.SetDefault();
    /* simulated work stream #2 */
    x = T( ranuni( 1:5 ) );
    print x;
end;
See Also

OutputDocument.GetDefault