Hello,

The "File =>Execute" command from the console is defined in
SCI\modules\gui\etc\main_menubar.xml
Instead of running an exec(file) command, i would like to take
mode() into account, and run exec(file, mode()) instead.

Then, puzzingly, mode() is always equal to -1:
Line#9, set
...then                 disp(mode()); exec(%fileToExec);   ...
and rerun a fresh scilab session, and load a file to execute.

Yet, if now we set the mode through a variable -- say m -- that can be
set in the console, the variable is well seen:

Line#9, set
...then                 disp(m); exec(%fileToExec, m);   ...
and rerun a fresh scilab session:
Then type
--> m=1;  // Then load a file to execute through the File => Execute menu
// => It is OK!

Why is mode() reset to -1 in the main_menubar, while other variables are not?

Samuel

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

Reply via email to