Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by skywalkr2

  1. skywalkr2

    Destroy $w - killing variable

    Thanks guys - you saved me :)
  2. skywalkr2

    Destroy $w - killing variable

    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...
  3. skywalkr2

    Issues with "source"

    I think you must be right. It must be which. Because the code you gave me here seems to work.
  4. skywalkr2

    Issues with "source"

    Wow - it locks up... This is the last thing I see: couldn't read file
  5. skywalkr2

    Issues with "source"

    Yes - I am sure. I wish that was the solution.
  6. skywalkr2

    Issues with "source"

    Yes - that DOES work. But for some reason if you use the regular expression to set it to the exact same text... it doesn't work? Very odd...
  7. skywalkr2

    Issues with "source"

    The regular expression worked. I must have a problem with our interpreter. After the regular expression, the variable data was set to macmenu_source files. However, it still did not work. So, I am at a loss... source $data (where data = "macmenu_source_files") doesn't work, but source...
  8. skywalkr2

    Issues with "source"

    Instead I have been trying to use string trimleft and cannot seem to get it to trim off the ./ special characters
  9. skywalkr2

    Issues with "source"

    It seems that Tcl7.6 doesn't support string map :(
  10. skywalkr2

    Issues with "source"

    I will have to look up the map command. I am getting this error: bad option "map": should be compare, first, index, last, length, match, range, tolower, toupper, trim, trimleft, trimright, wordend, or wordstart
  11. skywalkr2

    Issues with "source"

    That will probably work. ./ is the directory because we cd to the location of the files prior to execution. I will try this. Crossing my fingers.
  12. skywalkr2

    Issues with "source"

    No - it won't work if I have ./macmenu_source_files in data. It fails with file not found. If however I have "macmenu_source_files" by itself it DOES work.
  13. skywalkr2

    Issues with "source"

    Sorry - brain dead - The puts displays: ./macmenu_source_files This is the location of the file we are trying to source in.
  14. skywalkr2

    Issues with "source"

    Sorry - you lost me there. Is there a flag we need to use to determine the return code for each line being executed? I have never needed to use it. **Actually it's been like 5 years since I modified TCL code**
  15. skywalkr2

    Issues with "source"

    This is the exact two lines right before the source command. These process fine. The problem occurs on the 3rd line: source $data.

Part and Inventory Search

Back
Top