|

楼主 |
发表于 2013-1-29 16:09:11
|
显示全部楼层
回复 5# sjtusonic
单独打印$value是正确的,但是如果加上$x和$y就不行了,还是会报"can`t read "x",no such value"
proc Info {} {
set cvid [ leoGetWndCellViewId ]
set wndid [ leoGetwdWndId ]
set value [ lakerEnterPoint -handle $wndid -cv &cvid ]
regexp {\{(.*)\,(.*)\}} $value a x y
# set aa [expr $x+$y]
set inf [gtDisplayAppDBox -name Inf \
-dboxBanner "Infor" \
-dialogType "InformationDialog" \
-defaultButton 1 \
-buttonLayout "Close" \
-dboxText "The value is $value."\ # $aa change into $value
-location {200,200}]
} |
|