I am having problems with the line graph Widget.
My code, for generating the graphData, sometimes fails (wow) and instead of generating some data like this
it misses a line and tData looks like this0,0,0
1,4,6
2,5,9
3,5,10
4,5,11
5,5,12
6
No big deal to correct an empty line, you may say, but the widget error generates some kind of loop that keeps returning until you close the stack and I would prefer some bullet proof solution.0,0,0
1,4,6
3,5,10
4,5,11
5,5,12
6
Error correction inside the widget must be rather thin and I have not the expertise do dig it.
What I know is that, using the wrong content for tData
Code: Select all
Try
set the graphData of widget "LineGraph1" to tData
catch errorVar
exit
End try
But if, after the code above I read the content
Code: Select all
Try
put the graphData of widget "LineGraph1" into tTemp
catch errorVar
exit
End try
I wonder if anyone has some suggestion on safely validating the Widget input data before setting it.
Thanks all
Trevix