if i have an array like
array set Cellinfo {
type 1
width 80
height 120
cost 50
color #D60000
}
and i want to call a procedure and pass it
the array name so the procedure can perform calculations
on the data in the array eg. startCell Cellinfo
proc startCell { } {
upvar
}
i cant work out how to use upvar and access the array from
within the procedure
Can someone please put me out of my 3 hour misery !
Cheers Steve
array set Cellinfo {
type 1
width 80
height 120
cost 50
color #D60000
}
and i want to call a procedure and pass it
the array name so the procedure can perform calculations
on the data in the array eg. startCell Cellinfo
proc startCell { } {
upvar
}
i cant work out how to use upvar and access the array from
within the procedure
Can someone please put me out of my 3 hour misery !
Cheers Steve