Hello Paul,

Le 20/12/2016 21:45, [email protected] a écrit :

###############################################"
mode(0)

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,  "style",  "pushbutton",  ...
"string",  "$x^2$",...
"position",  [100  0  100  20],  ...
"callback",  "x = evstr(e.string);...
y = x^2;...
t.string = string(y);...
plot2d(x, y, style = -1);");

I get
--> b = uicontrol(f, "style", "pushbutton", ...
  > "string", "$x^2$",...
  > "position", [100 0 100 20], ...
  > "callback", "x = evstr(e.string);...
"callback", "x = evstr(e.string);...
                                   ^^
Error: Unexpected end of file in a string.

You can't break a string in this way, but with
"my string and "+..
"my text"

_______________________________________________
users mailing list
[email protected]
http://lists.scilab.org/mailman/listinfo/users

Reply via email to