Posted to tcl by ce_boleary at Sat Jul 04 13:22:43 GMT 2020view pretty
The code works great if I use $schPageInfo when I create the 2 new dictionary keys, but I don't want to do that...
set schPageInfo [dict create PAGE_NAME $lPageNameStr PAGE_NUM $lPageNum PAGE_WIDTH $lPageWidth PAGE_HEIGHT $lPageHeight]
dict set schPageInfoByPageName $lPageNameStr $schPageInfo
dict set schPageInfoByPageNum $lPageNum $schPageInfo
I want to use the schPageInfo so that I can get to the same exact data from either dictionary...
does that make sense?
I do this all the time in Perl, but haven't figured out the magic in TCL