[Scilab-users] uicontrol & wiki

Samuel Gougeon sgougeon at free.fr
Tue Dec 20 22:10:26 CET 2016


Hello Paul,

Le 20/12/2016 21:45, paul.carrico at free.fr 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"

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20161220/620b5d76/attachment.htm>


More information about the users mailing list