Modifiers
The “label” field (or anywhere you can use the dialog ‘Select variable) allows the following customizations:
- !Label The negated value of the label. It is 1 it contains 0. It is 0 if it contains any value other than 0.
- =script It allows to use a mathematic calculation directly in the Label field. The calculation result will be used as value for the Label field. Example: =(data1*5)-(data2+data5*2)
- Label{len=l;dec=d;fill=c} Data formatting. Len indicates the maximum number of digits to use (positive + decimals). If this number is exceeded, the value will be represented by “#” characters. Dec indicates the number of decimals to be used when the component does not allow specification of the comma position via the g_comma property (e.g., g_parameters in the StringDisplay component). Fill can be used to specify a fill character to the left of the value, if it does not reach the length requested via len.
- One or more parameters can be omitted. Examples:
- label{len=5;dec=2;fill=0} 12345 123.45 123 001.23 123456 ###.##
- label{len=4;fill=_} 12345 #### 123 _123
- label{len=3} 12345 ### 12 12
- Example of the use of a StringDisplay component:
- g_stringID = the string number corresponding to “today is %1/%2/%3 time %4:%5:%6″
- g_parameters = gqt_DateDay{len=2;fill=0},gqt_DateMonth{len=2;fill=0},gqt_DateYear,gqt_TimeHour{len=2;fill=0},gqt_TimeMinute{len=2;fill=0},gqt_TimeSecond{len=2;fill=0}
- Example of an output today is 18/06/2003 time 09:55:08