OutputDocument.Close

Prototypes

void Close()

Parameters

None

Remarks

This method closes the LISTING output document. You cannot call any methods on an OutputDocument object after you call this method.

Example
declare OutputDocument NormalDoc, CountdownDoc;
NormalDoc = OutputDocument.GetDefault();
CountdownDoc = OutputDocument.Create( false, false );
CountdownDoc.SetWindowPosition( 85, 0, 15, 15 );
CountdownDoc.ShowThinWindowBorder();
CountdownDoc.ShowWindow();

do i = 10 to 1 by -1;
    CountdownDoc.Clear();
    CountdownDoc.SetTextSize( 32 );
    CountdownDoc.SetDefault();
    Runtime.Print( (String)(int)i );
    NormalDoc.SetDefault();

    /* simulated work */
    x = T( ranuni( 1:5 ) );
    print x;
    run Delay( 750 );
end;

CountdownDoc.Close();