home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / lib / tclX-6.4 / help / variables / set < prev    next >
Encoding:
Text File  |  1992-12-17  |  1009 b   |  16 lines

  1.           set varname ?value?
  2.                Returns the value of variable  varname.   If  value  is
  3.                specified,  then  set  the  value  of varname to value,
  4.                creating a new variable if one doesn't  already  exist,
  5.                and  return  its  value.   If  varName contains an open
  6.                parenthesis and ends with a close parenthesis, then  it
  7.                refers  to an array element:  the characters before the
  8.                open parenthesis are the name of  the  array,  and  the
  9.                characters between the parentheses are the index within
  10.                the  array.   Otherwise  varName  refers  to  a  scalar
  11.                variable.   If  no  procedure  is  active, then varname
  12.                refers to a global variable.  If a procedure is active,
  13.                then varname refers to a parameter or local variable of
  14.                the procedure,  unless  the  global  command  has  been
  15.                invoked to declare varname to be global.
  16.