Re: [Scilab-users] Invalid index?

2016-03-30 Thread scilab . 20 . browseruk
> > At the risk of sounding like a theologian, what is god? > Just a short-to-type, vaguely appropriate name for a https://en.wikipedia.org/wiki/God_object. Basically, I was storing data that is shared by several callbacks in globals and accessing from within the functions using global( 'thi

Re: [Scilab-users] Invalid index?

2016-03-30 Thread Tim Wescott
At the risk of sounding like a theologian, what is god? On Wed, 2016-03-30 at 05:48 -0800, scilab.20.browse...@xoxy.net wrote: > This one has me baffled! > > If I run this code: > ... > god.vars = []; > for i=1:11 > disp(i); > god.vars(i) = 1; // uicontrol( god.frame1, 'style', 'tex

[Scilab-users] Invalid index?

2016-03-30 Thread scilab . 20 . browseruk
This one has me baffled! If I run this code: ... god.vars = []; for i=1:11 disp(i); god.vars(i) = 1; // uicontrol( god.frame1, 'style', 'text', 'string', god.labels(i), 'position', [ i*60 - 8 + fudge, 30, 10, 20 ] ); ... end It completes without error. But if I uncomment the u