TCL_UpVar — Make a link from a tcl source variable to a tcl destination variable
OK=TCL_UpVar(varname1,varname2,[interp])
character string. Contains the name of the tcl source variable.
character string. Contains the name of the tcl destination variable.
optional character string parameter. Name of the slave tcl interpreter in which the operation has to be performed. If not provided, it defaults to the main tcl interpreter created by Scilab.
boolean. %T if it is ok.
TCL_SetVar("Scilab","OK") TCL_UpVar("Scilab","ScilabBis") TCL_GetVar("ScilabBis") TCL_SetVar("Scilab","NOK") TCL_GetVar("ScilabBis") TCL_SetVar("ScilabBis","modified") TCL_GetVar("ScilabBis") TCL_GetVar("Scilab") TCL_CreateSlave('InterpBis') TCL_SetVar("Scilab","Good",'InterpBis') TCL_UpVar("Scilab","ScilabBis",'InterpBis') TCL_GetVar("ScilabBis",'InterpBis') TCL_SetVar("Scilab","Not good",'InterpBis') TCL_GetVar("ScilabBis",'InterpBis') TCL_SetVar("ScilabBis","modified again",'InterpBis') TCL_GetVar("ScilabBis",'InterpBis') TCL_GetVar("Scilab",'InterpBis') TCL_DeleteInterp('InterpBis')