Re: Tcl_ResetResult()



swan lee wrote:
Hi,
can someone explain me the purpose of this command, and more specificaly if i need to call it after Tcl_SetVar2Ex() if i don't want the variable to be spread over all proc.

my issue is i set a variable in a command let's say $wich
Tcl_SetVar2Ex(x->interp, "wich",NULL, Tcl_NewStringObj("ThisIsIt", -1), TCL_NAMESPACE_ONLY);

after i execute
Tcl_EvalEx(x->interp, "wm title . $wich", -1, TCL_EVAL_DIRECT);

perfect, but if i have another window opened where another variable also called $wich exists, the value of $wich is modified.

should i call ResetResult() after the EvalEx() if i don't want to use this variable anymore, or could you point me another strategy.

Please try asking the question again more directly and clearly, with
more complete code excerpts, in order, and not so much description or
speculating about possible answers. Certainly don't use your
speculations as the Subject line.

"I did this. I expected to see this. I saw that instead. What should
I change to get what I expect?"

--
| Don Porter Applied and Computational Mathematics Division |
| donald.porter@xxxxxxxx Information Technology Laboratory |
| http://math.nist.gov/~DPorter/ NIST |
|______________________________________________________________________|
.



Relevant Pages

  • Re: Tcl_ResetResult()
    ... can someone explain me the purpose of this command, ... also called $wich exists, the value of $wich is modified. ... speculating about possible answers. ... unfortunally, if the first toplevel is open, if i open the second one, back to the first, the value of $wich have changed. ...
    (comp.lang.tcl)
  • Tcl_ResetResult()
    ... can someone explain me the purpose of this command, and more specificaly if i need to call it after Tcl_SetVar2Exif i don't want the variable to be spread over all proc. ... perfect, but if i have another window opened where another variable also called $wich exists, the value of $wich is modified. ... best regards, ...
    (comp.lang.tcl)
  • [RFC: 2.6 patch] remove the broken SCSI_ACORNSCSI_3 driver
    ... * Abandoned using the Select and Transfer command since there were ... Once debugged, remove the #undef, otherwise to debug, ... -unsigned int dmac_address ... * Purpose: differentiate between commands that have a DATA IN phase ...
    (Linux-Kernel)
  • Re: Looking for the name on a concept AKA Do "reverse data loggers" exist?
    ... I am thinking about building a small robot but since any change is ... I ask this because the statement "any change is command ... steps will be rare" sounds like you have a very specific purpose in mind. ...
    (comp.robotics.misc)
  • [PATCH] scsi: Scsi_Cmnd convertion in arm subtree
    ... Purpose: complete processing for command ... Params: ... queue a command for adapter to process. ...
    (Linux-Kernel)