[Scilab-users] Executing scripts with functions from GUI
Jan Åge Langeland
j-lan at online.no
Mon Apr 18 23:20:17 CEST 2016
On 18.04.2016 21:05, Samuel Gougeon wrote:
> afun() is defined in sel(), and so is local to sel(). It is cleared
> when leaving sel(). To prevent this, you may return it as "afun" in
> the environment calling sel() with:
> afun = return(afun)
> at the end of sel(), before leaving it.
>
> https://help.scilab.org/docs/5.5.2/en_US/return.html
>
> HTH
> Samuel
Thanks a lot, works fine, although it is a bit sensitive to changes in
the executed scripts.
Brgds
Jan Å
More information about the users
mailing list