Changeset 00feab6 in tol
- Timestamp:
- Nov 27, 2008, 5:58:30 PM (18 years ago)
- Branches:
- 1941-docker-image-to-test, devel, master
- Children:
- c9cb341
- Parents:
- 01994af
- File:
-
- 1 edited
-
tolbase/lib/byswidget/bfunctions/bftoltcl.tcl (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tolbase/lib/byswidget/bfunctions/bftoltcl.tcl
r01994af r00feab6 125 125 # eval 126 126 set cmd "::tol::info variable {$obj $args}" 127 #puts " cmd:$cmd"127 #puts "TclInfoRef: cmd=$cmd" 128 128 if {![catch {set lst [eval $cmd]}]} { 129 129 set lstNam [list GRAMMAR NAME CONTENT PATH DESC ISFILE\ … … 202 202 # namVarFat[x][y][z] (variable with father) 203 203 #///////////////////////////////////////////////////////////////////////////// 204 Tolcon_Trace "TclRefToNameTol: ref-> $ref"205 204 set ref [lindex $ref 0] 205 #puts "TclRefToNameTol: ref=$ref" 206 206 # the object belongs to a set? 207 207 if {[expr [llength $ref] == 1]} { 208 208 set namTol $ref 209 209 } else { 210 array set infRef [TclInfoRef [lrange $ref 0 1]] 210 #array set infRef [TclInfoRef [lrange $ref 0 1]] 211 array set infRef [TclInfoRef $ref] 211 212 set namTol $infRef(NAME) 212 # Tolcon_Trace "TclRefToNameTol: namTol ->$namTol"213 #puts "TclRefToNameTol: namTol=$namTol" 213 214 # name ? 214 if {[string length $namTol]} {215 #if {[string length $namTol]} { 215 216 # ckeck parameters 216 if {[expr [llength $ref] > 2]} {217 set lstInx [lrange $ref 2 end]218 foreach ind $lstInx {219 set namTol $namTol\[$ind\]220 }221 }222 } else {223 set namTol {}224 }225 }226 Tolcon_Trace "TclRefToNameTol: Nombre de la variable a usar ->$namTol"217 #if {[expr [llength $ref] > 2]} { 218 #set lstInx [lrange $ref 2 end] 219 #foreach ind $lstInx { 220 #set namTol $namTol\[$ind\] 221 #} 222 #} 223 #} else { 224 #set namTol {} 225 #} 226 #} 227 #puts "TclRefToNameTol: namTol=$namTol" 227 228 return $namTol 228 229 }
Note: See TracChangeset
for help on using the changeset viewer.
