# | Line 29 | Line 29 | proc cardval {var cvl} { # set variable to one of a se | |
---|---|---|
29 | } | |
30 | return {} ; # this would seem to be an error | |
31 | } | |
32 | + | |
33 | + | proc writevars {f vl} { # write variables to a file |
34 | + | foreach v $vl { |
35 | + | upvar $v myv |
36 | + | if [catch {set il [array names myv]}] { |
37 | + | puts $f "set $v [list $myv]" |
38 | + | } else { |
39 | + | foreach i $il { |
40 | + | puts $f "set ${v}($i) [list $myv($i)]" |
41 | + | } |
42 | + | } |
43 | + | } |
44 | + | } |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |