Syntax
InvertAttr( xColor ) --> nInvertedAttributeArguments
xColor
Example
PROCEDURE Main()
Check( 'InvertAttr( 7 ) ', InvertAttr( 7 ), 112 )
Check( 'NToColor( InvertAttr( "W+/B" ), .T. ) ', NToColor( InvertAttr( "W+/B" ), .T. ), "B+/W" )
RETURN
STATIC PROCEDURE Check( cTitle, xResult, xExpected )
QOut( cTitle + IIF( xResult == xExpected, "OK", "ERROR" ) )
RETURNOutput
InvertAttr( 7 ) OK
NToColor( InvertAttr( "W+/B" ), .T. ) OK