FUNCTIONS CORE

SetClearB()

Set the default character attribute for clearing the screen

Syntax

Signature
SetClearB( [xChar] ) --> cNull

Arguments

xChar

Example

SetClearB.prg
PROCEDURE Main()

   SetClearB( "." )
   Check( 'GetClearB() after SetClearB( "." ) ', GetClearB(), Asc( "." ) )

   SetClearB()
   Check( 'GetClearB() after SetClearB()      ', GetClearB(), 32 )

RETURN

STATIC PROCEDURE Check( cTitle, xResult, xExpected )

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

RETURN

Output

GetClearB() after SetClearB( "." ) OK
GetClearB() after SetClearB()      OK