FUNCTIONS CORE

GetClearA()

Return the default color attribute for clearing the screen

Syntax

Signature
GetClearA( ) --> nClearAttribute

Example

GetClearA.prg
PROCEDURE Main()

   Check( 'GetClearA()                    ', GetClearA(), 7 )
   Check( 'NToColor( GetClearA(), .T. )   ', NToColor( GetClearA(), .T. ), "W/N" )

RETURN

STATIC PROCEDURE Check( cTitle, xResult, xExpected )

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

RETURN

Output

GetClearA()                    OK
NToColor( GetClearA(), .T. )   OK