Le 02/02/2014 10:05, A Khorshidi a écrit :
    <button icon="edit-clear" tooltiptext="Clear All">

        <callback   instruction="    clc();
                    clear();
                    clearglobal();
                    resethistory();
                    chdir()"
                    type="0"/>

    </button>

After restarting Scilab, the new clc icon must can do all the above tasks but it cannot clear local and global variables! Actually, I think, the "instruction" attribute cannot perform some scilab commands sush as : clear(), clearglobal(),.. However there are many instructions which work fine: clc(), resethistory(), chdir(),..

So where is the problem?
My best guess would be that in the callback, you should drop the atomic bombs clear() (and may be clearglobal() if the callback instruction has survived to the clear() that it performed) as /last/ instructions. clear() also clears the /gcbo/ variable: So your proposal looks like a gcbo-callback suicide. And it is somewhat preferable to kiss one's mother /before/ suiciding oneself than /after/.

AAaaa /clear all, close all/... Nice custom!
:-)

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

Reply via email to