void Clear()
None
This method deletes the contents of the LISTING output document and resets document formatting to the default.
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();