Promotic
WikipediaLinkedInYoutubeTwitterFacebook

Color - property of object ExtTrend

Description:
Color of displayed variable.
Syntax:
Color As String
Calling:
sColor = oTrend.Item(2).Color 'in sColor is a RGB String in the form "#RRGGBB"
Note:
Property access for read and write. The preset value of this property is defined in the Color configurator of this object. The property returns/sets the RGB String in the form "#RRGGBB".

The value entered here is used as initialization value for trend views (for TrendsView object). The value is entered in the following property: tvGraph.Color

Example1:
Examples of obtaining this property in script.
value = pMe.Pm("/data/#vars/Temperature/#ext/trend").Color
or
value = pMe.Pm("/data/#vars/Temperature").Extension("trend").Color
or
value = pMe.Pm("/data").Item("Temperature").Extension("trend").Color
Example2:
Example of obtaining this property by Macro expression from another data extension via pDE variable.
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice