<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Le 02/02/2014 10:05, A Khorshidi a
      écrit :<br>
      <blockquote type="cite">    <button icon="edit-clear"
        tooltiptext="Clear All"><br>
        <br>
                <callback   instruction="    clc();<br>
                            clear();<br>
                            clearglobal();<br>
                            resethistory();<br>
                            chdir()"<br>
                            type="0"/>           <br>
        <br>
            </button><br>
        <br>
        After restarting Scilab, the new clc icon must can do all the
        above tasks but it cannot clear local and global variables!<br>
        Actually, I think, the "instruction" attribute cannot perform
        some scilab commands sush as : clear(), clearglobal(),..<br>
        However there are many instructions which work fine: clc(),
        resethistory(), chdir(),..<br>
        <br>
        So where is the problem?</blockquote>
      My best guess would be that in the callback, you should drop the
      atomic bombs clear() (and may be clearglobal()<br>
      if the callback instruction has survived to the clear() that it
      performed) as <i>last</i> instructions. clear() also clears the <i>gcbo</i>
      variable:<br>
      So your proposal looks like a gcbo-callback  suicide. And it is
      somewhat preferable to kiss one's mother <i>before</i> suiciding
      oneself than <i>after</i>.<br>
      <br>
      AAaaa <i>clear all, close all</i>... Nice custom!<br>
      :-)<br>
      <br>
    </div>
  </body>
</html>