[Scilab-users] problem with GUI pushbutton callback
Dang, Christophe
Christophe.Dang at sidel.com
Tue Apr 23 11:10:12 CEST 2013
Hello,
I had a small example that used to work,
and does not anylonger.
// Example
// ********************
f = scf(0);
e = uicontrol(f, "style", "edit", ...
"position", [0 0 100 20]);
t = uicontrol(f, 'style', 'text',...
"position", [200 0 100 20], ...
"string", "...");
b = uicontrol(f, "string", "$x^2$",...
"position", [100 0 100 20], ...
"callback", "x = eval(e.string);...
y = x^2;...
t.string = string(y);...
plot2d(x, y, style = -1);");
// ********************
when I try to use it, I get a
%_h =
!--error 2
Facteur invalide.
at line 2 of function %eval called by :
at line 19 of function eval called by :
:13e35c75130:-7b0f");x = eval(e.string); y = x^2; t.string = stri
while executing a callback.
Has anything changed in the GUI that makes my code obsolete?
Regards
--
Christophe Dang Ngoc Chan
Mechanical calculation engineer
This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.
More information about the users
mailing list