1
<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
2
<!DOCTYPE MAN SYSTEM "../../manrev.dtd">
4
<LANGUAGE>eng</LANGUAGE>
5
<TITLE>TK_GetVar</TITLE>
6
<TYPE>Scilab Function</TYPE>
7
<DATE> 04 June 1998</DATE>
8
<SHORT_DESCRIPTION name="TK_GetVar"> Get a tcl/tk variable value</SHORT_DESCRIPTION>
12
<PARAM_NAME>o</PARAM_NAME>
14
<SP>varname : string character Contains the name of the tcl/tk variable.</SP>
18
<PARAM_NAME>o</PARAM_NAME>
20
<SP>value : string character Contains the value of the tcl/tk variable 'varname'.</SP>
27
When tcl/tk support is enabled in scilab, this routine can be used to retreive
28
the value of a tcl/tk variable.</P>
32
TK_EvalStr('toplevel .tst1');
33
// creates a toplevel TK window.
34
TK_EvalStr('entry .tst1.e -textvariable tvar');
35
// create an editable entry
36
TK_EvalStr('set tvar foobar');
37
// set the entry value
38
TK_EvalStr('pack .tst1.e');
39
// pack the entry widget. It appears on the screen.
40
text=TK_GetVar('tvar')
41
// retrieve the variable value
42
// change the entry text and repeat the last command ...
44
//delete the toplevel TK window.
45
TK_EvalStr('destroy .tst1')
51
<LINK>ScilabEval</LINK>
54
<LINK>TK_EvalFile</LINK>
57
<LINK>TK_EvalStr</LINK>
60
<LINK>TK_SetVar</LINK>
63
<AUTHOR>Bertrand Guiheneuf</AUTHOR>