我的想法就是当复选框选择1/2“时,规格为SCH5S时 重量=0.82*长度那个文本框中的值
类似这样的Case "SCH10S"
Set j = 1.01 * l
zh_txt.test = j
Case "SCH10"
MsgBox "此种规格管材不存在!"
Case "SCH20"
MsgBox "此种规格管材不存在!"
Case "SCH30"
MsgBox "此种规格管材不存在!"
Case "SCH40S"
Set j = 1.3 * l
zh_txt.test = j
Case "STD"
Set j = 1.27 * l
zh_txt.test = j
Case "SCH40"
Set j = 1.27 * l
zh_txt.test = j
Case "SCH60"
MsgBox "此种规格管材不存在!"
Case "SCH80S"
Set j = 1.65 * l
zh_txt.test = j
Case "XS"
Set j = 1.62 * l
zh_txt.test = j
Case "SCH80"
Set j = 1.62 * l
zh_txt.test = j
Case "SCH100"
MsgBox "此种规格管材不存在!"
Case "SCH120"
MsgBox "此种规格管材不存在!"
Case "SCH140"
MsgBox "此种规格管材不存在!"
Case "SCH160"
Set j = 1.95 * l
zh_txt.test = j
Case "XXS"
Set j = 2.55 * l
zh_txt.test = j
End Select
但是我运行的时候 错误提示为 除非控件获得焦点,否则您不能引用该控件的属性和方法。 作者: dearbear 时间: 2011-5-23 13:35 回复 sxgaobo 的帖子
--------------------------------------------------------------
God made relatives; Thank God we can choose our friends. nike lunarglide+2,nike free 7.0,nike free 3.0 作者: tz-chf 时间: 2011-5-30 09:00
.test去掉。另外难道2007的text改成test了?