
     var
        Var is an xtpanel variable, an object that  has  a  value
        and  no  screen representation. If a variable has actions
        specified, these actions are  performed  every  time  the
        variable's value is changed. Variables are useful for two
        reasons: first,  they  provide  temporary  storage  in  a
        script.  Second,  if  you have some actions that you want
        many different objects to perform, instead of duplicating
        the  actions for each object, you can give the actions to
        a variable, and have each object perform the  actions  by
        assigning  a value to the variable.  Obviously a variable
        should never change its own  value  since  a  loop  would
        result.

        Syntax: var={ name=... value=... action=... }

        name  defaults to "var1", "var2" etc. value is the  value
        of  the  var. actions are performed whenever the value of
        the variable is changed.


        Variables can be used for adding arbitrary  arguments  on
        the  command line. See the command line syntax below. The
        values of var objects may be used in  the  definition  of
        other  objects so that an xtpanel's behavior can be modi-
        fied without changing the script file. Also the value  of
        a var may be changed by the ASSIGN action. Thus a var can
        be used to pass information from one object to another.


        Here is an example of how you might use an xtpanel  vari-
        able.   Suppose  that  you have one script file that asks
        the user for a file name, then calls a second  script  to
        display  the  file  in  a  text window. Here is the first
        script:
        button={ label=QUIT action=QUIT }
        dialog={ label="Filename" action="xtpanel -var file $val -file script2" }
        and here is the second script, script2. The  $file  vari-
        able from script1 is used in two places in script2:
        button={ label=QUIT action=QUIT }
        message={ value="$file" }
        text={ value=`cat $file` }
