PCOLOR |
pcolor contains the display colour for a zone for which the option 'c' has been set.
Shortint [S]pcolor
# Display of MONTANT field in red (colour 1) if the total is negative
Subprog AV_MONTANT If VALEUR < 0pcolor = GCOUL(1)
Elsepcolor = GCOUL(0)
Endif
When using the 'c' option, the variable pcolor is used to establish the colour to be used. This allows displays to be in different colours, if you carefully change pcolor (for example to the default value, before zone or before entry). The colours are only controlled for fields in a table.
pcolor is set to 0 by default. It takes any value and is referred to a style from the X3.ini file. In the application we have restricted ourselves to the range 20…20. Style numbers 20 to 27 are stored in the global variable GCOUL(0..7).
No associated errors.
|
|