Promotic
WikipediaLinkedInYoutubeTwitterFacebook

LabelFormat - property of object tvScale

Description:
Format of scale legends.
Syntax:
LabelFormat As Variant
Calling:
oScale.LabelFormat = format
Note:
Property access for read and write. The preset value of this property is defined in the LabelFormat configurator of this object. Drawing the scale legends proceeds according to this property setting, only when the value oTrend.LabelFormat="$dbind" is set in the tvTrend.LabelFormat property. (by tvTrend.LabelFormat property otherwise).
 
Setting this property differs according to setting the LabelFormatType property:
If LabelFormatType=0, then the legent is a numeric value, with the accuracy defined in LabelFormat meaning the number of valid digits of the difference between tvTrend.ValueMax and tvTrend.ValueMin.
If LabelFormatType=1, then the legend is a numeric value and the number of decimal places is set into the LabelFormat.
If LabelFormatType=10, then the legend is a time and the format formula is set into the LabelFormat in the form, for example, "%d.%m.%Y %H:%M:%S.%T" where:
d=day (1-31),
m=month (1-12),
Y=year (e.g. 2016),
H=hour,
M=minute,
S=second,
T=millisecond (0-999) - it is possible %nT, where n is count of figures 1, 2 or 3
.

If the legend has to be divided into more lines, it is necessary to enter "new line" character (vbLf constant) into the string for example by the following way: LabelFormat = "%d.%m.%Y" & vbLf & "%H:%M:%S".

Default value at the value scale is 1 (i.e. 1 decimal place), at the time scale it is the string "%d.%m.%Y" & vbLf & "%H:%M:%S".

Example:
See the example in the description of LabelFormatType property
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice