Posted to tcl by ce_boleary at Sat Jul 04 13:22:43 GMT 2020view raw

  1. The code works great if I use $schPageInfo when I create the 2 new dictionary keys, but I don't want to do that...
  2.  
  3. set schPageInfo [dict create PAGE_NAME $lPageNameStr PAGE_NUM $lPageNum PAGE_WIDTH $lPageWidth PAGE_HEIGHT $lPageHeight]
  4.  
  5. dict set schPageInfoByPageName $lPageNameStr $schPageInfo
  6. dict set schPageInfoByPageNum $lPageNum $schPageInfo
  7.  
  8. I want to use the schPageInfo so that I can get to the same exact data from either dictionary...
  9. does that make sense?
  10.  
  11. I do this all the time in Perl, but haven't figured out the magic in TCL