Man Scilab

TK_GetVar
Scilab Function

TK_GetVar - Get a tcl/tk variable value

Parameters

Description

When tcl/tk support is enabled in scilab, this routine can be used to retreive the value of a tcl/tk variable.

Examples


TK_EvalStr('toplevel .tst1');
// creates a toplevel TK window. 
TK_EvalStr('entry .tst1.e -textvariable tvar');
// create an editable entry
TK_EvalStr('set tvar foobar');
// set the entry value
TK_EvalStr('pack .tst1.e');
// pack the entry widget. It appears on the screen.
text=TK_GetVar('tvar')
// retrieve the variable value
// change the entry text and repeat the last command ...

//delete the toplevel TK window.
TK_EvalStr('destroy .tst1')

 
  

See Also

ScilabEval ,   TK_EvalFile ,   TK_EvalStr ,   TK_SetVar ,  

Author

Bertrand Guiheneuf

Back