TCL_UnsetVar
Remove a tcl variable
Syntax
OK=TCL_UnsetVar(varname [,interp])
Arguments
- varname
character string. Contains the name of the tcl/tk variable to unset.
- interp
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.
- ok
boolean. %T if varname was deleted.
Description
This routine allows to unset a tcl variable.
More information about Tcl/Tk: http://www.tcl.tk/doc/
Examples
TCL_SetVar("Scilab","OK") TCL_GetVar("Scilab") TCL_UnsetVar("Scilab") TCL_ExistVar("Scilab") TCL_CreateSlave('InterpSlave'); TCL_SetVar("Scilab","Good",'InterpSlave') TCL_GetVar("Scilab",'InterpSlave') TCL_UnsetVar("Scilab",'InterpSlave') TCL_ExistVar("Scilab",'InterpSlave') TCL_DeleteInterp('InterpSlave')
See also
- ScilabEval — tcl instruction : Evaluate a string with scilab interpreter
- TCL_EvalFile — Reads and evaluate a tcl/tk file
- TCL_EvalStr — Evaluate a string within the Tcl/Tk interpreter
- TCL_GetVar — Get a tcl/tk variable value
- TCL_SetVar — Set a tcl/tk variable value
- TCL_ExistVar — Return %T if a tcl variable exists
- TCL_UpVar — Make a link from a tcl source variable to a tcl destination variable
- TCL_CreateSlave — Create a TCL slave interpreter
- TCL_DeleteInterp — delete TCL interpreter
Report an issue | ||
<< TCL_SetVar | Interfaces com Tcl/Tk | TCL_UpVar >> |