It doesnt work correctly and its because taskname>#length isnt working (for me).
I've simplified my rules below but I still only get value of 1 returned when I try to measure the length of the text string
Any ideas ?
Code: Select all
on displayhome do
Touch,Setgrp,1
tft,clear,black
tft,txs,3
let,121,[TFTpanel#length."text to measure"]
let,122,[TFTpanel#width]
let,123,([TFTpanel#width]-[TFTpanel#length.%systm_hm%])/2 // (width - textlength)/2
tft,txtfull,[int#123],100,3,red,black,%systm_hm% // Display time red on black
endon
%v121% = 1
%v122% = 480
%v123% = 240
I notice that in the rules editor "TFTpanel#length" is in black wheras "TFTpanel#width" is Red.
Does this mean the variable "TFTpanel#length" is inactive ?
I must have done something wrong - but I cant see it !