<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<font face="Arial">Hello,<br>
<br>
The "File =>Execute" command from the console is defined in <br>
SCI\modules\gui\etc\main_menubar.xml<br>
Instead of running an exec(file) command, i would like to take<br>
mode() into account, and run exec(file, mode()) instead.<br>
<br>
Then, puzzingly, mode() is always equal to -1:<br>
Line#9, set <br>
...then disp(mode()); exec(%fileToExec); ...<br>
and rerun a fresh scilab session, and load a file to execute.<br>
<br>
Yet, if now we set the mode through a variable -- say m -- that
can be<br>
set in the console, the variable is well seen:<br>
<br>
</font><font face="Arial">Line#9, set <br>
...then disp(m); exec(%fileToExec, m); ...<br>
and rerun a fresh scilab session:<br>
Then type <br>
--> m=1; // Then load a file to execute through the File =>
Execute menu<br>
// => It is OK!<br>
<br>
Why is mode() reset to -1 in the main_menubar, while other
variables are not?<br>
<br>
Samuel<br>
<br>
</font>
</body>
</html>