Purpose

.BackColor specifies which colour is applied to the background area of certain objects.
 

Syntax

Setting:       ObjectReference.BackColor = Value

Retrieving:  Variable = ObjectReference.BackColor
 

Operation

ObjectReference is the Tag Name of the object
Value is an RGB triplet string or a string holding a colour name (see
Colour Values)
Variable is an alphanumeric variable
 

Remarks

Logical colour names are defined in the Windows Client Application Definitions File.
 

Example

To set the .BackColor of a text string for the CustomerNamePrompt to green:

CustomerNamePrompt.BACKCOLOR = "GREEN"
or
CustomerNamePrompt.BACKCOLOR = "0,255,0"
or
$GREEN = "GREEN"
CustomerNamePrompt.BACKCOLOR = $GREEN


To set the .BackColor property for the Visa Radio Button label to red:

CreditCardGroup.Button(VisaButton).BackColor = "RED"


To retrieve the .BackColor property from the same Visa Radio Button label into the contents of $VISALABELCOLOR. Its value should then be the string "RED":

$VISALABELCOLOR = CreditCardGroup.Button(VisaButton).BackColor
 

Comment on this topic

Topic ID: 510038