Skip to content
Tcl Source Code History Of Ticket 2059850
Login

History Of Ticket 2059850

Artifacts Associated With Ticket 2059850

  1. Ticket change [15a1cbcbb3] (rid 124601) by nobody on 2008-08-19 14:20:44:

    1. assignee initialized to: "dkf"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      8.5.4 & 8.4
      Windows
      
      Do not appear to be able to use a string variable in a string map key as per sample command below
      
      It may be my problem in lack of understanding rather than a bug, I am not sure. If so apologies in advance
      
      Command
      
      [string map {$str ""} "$string list"]
      
      Simple removal of a string from a list of strings
      
      The variable "$string list" works fine but unable to set a variable in the key "$str" , replace it with a text string & all ok
      
      Have tried all permutations on syntax with bracketing etc to no avail
      
      I understood variables were now permitted
      
      
      [email protected]
      
    4. foundin initialized to: "None"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "nobody"
    10. subsystem initialized to: "18. Commands M-Z"
    11. title initialized to: "String Map"
    12. type initialized to: "Bug"
  2. Ticket change [ef8b11b9a8] (rid 109011) by dkf on 2008-08-19 21:32:37:

    1. closedate changed to: "2008-08-19T14:32:37"
    2. closer changed to: "dkf"
    3. icomment:
      Logged In: YES 
      user_id=79902
      Originator: NO
      
      use this:
        string map [list $str ""] $stringToChange
      
      
    4. login: "dkf"
    5. mimetype: "text/plain"
    6. resolution changed to: "Invalid"
    7. status changed to: "Closed"
    8. username: "dkf"
  3. Ticket change [16f14d874e] (rid 124799) by nobody on 2008-08-20 09:34:05:

    1. icomment:
      Logged In: NO 
      
      Thank you, it is appreciated, thought it may have been my inexperience
      
      
      [email protected]
      
      
    2. login: "[email protected]"
    3. mimetype: "text/plain"
    4. username: "[email protected]"