FUNCTIONS CORE

SetClearA()

Set the default color attribute for clearing the screen

Syntax

Signature
SetClearA( [xColor] ) --> cNull

Arguments

xColor

Example

SetClearA.prg
PROCEDURE Main()

   SetClearA( "W+/B" )
   Check( 'GetClearA() after SetClearA( "W+/B" ) ', GetClearA(), 31 )

   SetClearA()
   Check( 'GetClearA() after SetClearA()         ', GetClearA(), 7 )

RETURN

STATIC PROCEDURE Check( cTitle, xResult, xExpected )

   QOut( cTitle + IIF( xResult == xExpected, "OK", "ERROR" ) )

RETURN

Output

GetClearA() after SetClearA( "W+/B" ) OK
GetClearA() after SetClearA()         OK