INVERT BACKGROUND

4D - Documentation   Français   English   German   Spanish   4D v11 SQL, Command Theme List   4D v11 SQL, Command Alphabetical List   4D v11 SQL, Constant Theme List   Back   Previous   Next

version 3


INVERT BACKGROUND ({*; }textVar | textField)

ParameterTypeDescription
*Allows entry of a variable or object name
textVar | textFieldVariable | FieldText variable or field to invert

Description

INVERT BACKGROUND is used to invert textVar or textField in the form.

The scope of the command is the form being used.

You can use INVERT BACKGROUND when displaying on screen or printing to a dot matrix printer. A postscript printer will not print an inverted background.

You cannot invert a variable in an output form. Avoid using INVERT BACKGROUND on an enterable variable. Entering characters will only partially erase the inverted display.

Example

This example is an object method for a variable in an input form. It tests the value of a field. If the field is positive, the object method does nothing. If the field is negative, the object method inverts the display of the variable in the form:

   vAmount:=[Accounts]Amount  ` Put the value of field in the variable 
   If (vAmount < 0)  ` If it is a negative amount… 
      INVERT BACKGROUND (vAmount)  ` Invert the background 
   End if

Note: This command, originally created for black and white user interfaces, is now rarely used. You now generally use colors to highlight a field or a variable.

See Also

SET COLOR, SET RGB COLORS.


4D - Documentation   Français   English   German   Spanish   4D v11 SQL, Command Theme List   4D v11 SQL, Command Alphabetical List   4D v11 SQL, Constant Theme List   Back   Previous   Next