Hi…
Seems like a bug… crawling in my head… or in Ignition?
I have a simple template called PartTrackOverlay with a label component. The text property of the label has this binding expression:
substring({PartTrackOverlay.instanceName}, 4) //simple enough, right?
But, it keeps throwing this error.
Exception: Error executing expression binding on
PartTrackOverlay.PartTrackOverlay.Label.text
caused by StringIndexOutOfBoundsException: String index out of range: -4
The instanceName of each template is Part1, Part2, …Part32.
Also… I would have thought the error would be 4, not -4. Perhaps a clue, but I am not sure where it leads.
The only integer arg it will take is zero. Whatever arg I put in there for the offset shows up in the error as a negative number.
And, after closing the error, the label is correct on the template in the designer.
Any wisdom?
Thanks
Steve
v7.9.9