Hello tcl wizards,
I am not a tcl wizard and am trying to port over some code I found on the internet to my application. I am just creating a simple inputbox process that takes the root window and text message as inputs. The user then populates a text box and hits okay. At that point the entry by the user should be returned to the controlling program and the input box should shut.
Okay - the problem is that the global variable setup within the inputbox proc is being reset at the point where destroy $w is occuring. I have a puts $returnValue before and after the destroy command and it is populated prior and unpopulated after. Therefore the return $returnValue at the end of the proc returns no information to the controlling program. What am I supposed to do?
Let me know if I am completely off. Thanks.
I am not a tcl wizard and am trying to port over some code I found on the internet to my application. I am just creating a simple inputbox process that takes the root window and text message as inputs. The user then populates a text box and hits okay. At that point the entry by the user should be returned to the controlling program and the input box should shut.
Okay - the problem is that the global variable setup within the inputbox proc is being reset at the point where destroy $w is occuring. I have a puts $returnValue before and after the destroy command and it is populated prior and unpopulated after. Therefore the return $returnValue at the end of the proc returns no information to the controlling program. What am I supposed to do?
Let me know if I am completely off. Thanks.