Lets see example
var global gV;
function classA_setThemeParams(colour)
{
gV= col;
....
}
function onLayout(dc)
{
classA_setThemeParams();
}
function onUpdate(dc)
{
for(i...)
{
//something external fe. backgroung call classA_setThemeParams during the loop
drawables(i).draw(dc);//samewher in drawables there is dc.setColor(gV,gV); <----------------------------------- from time to time error, why?
}
Error Name: Symbol Not Found Error
Error Name: Invalid Value
Why this happen?
gV should be handle an point to value
this example show that
- sdk makes "local var" from global instead of taking value from def every time
- during operation = sdk change handle to object