<script language="VBScript" type="text/VBScript">
Msgbox "yes or no?",32+vbYesNo,""
</script>
if vbYes then temp=Rs(3).value end if
if vbNo then temp=Rs(4).value end if
但是我每次运行时无论按那个那个按钮temp都为Rs(4).value
请问这是为什么?
...全文
3814打赏收藏
请问一下这个语句有什么问题?
Msgbox "yes or no?",32+vbYesNo,"" if vbYes then temp=Rs(3).value end if if vbNo then temp=Rs(4).value end if 但是我每次运行时无论按那个那个按钮temp都为Rs(4).value 请问这是为什么?
<script language="VBScript" type="text/VBScript">
rtValue=(Msgbox "yes or no?",32+vbYesNo,"")
if rtValue= vbYes then temp=Rs(3).value
if rtValue= vbNo then temp=Rs(4).value
</script>
你要做什么,是在客户端来判断吗?如果是那选择后就得提交。
<script language="VBScript" >
rtValue=(Msgbox "yes or no?",32+vbYesNo,"")
if rtValue= vbYes then temp=<%=Rs(3).value%>
if rtValue= vbNo then temp=<%=Rs(4).value%>
</script>
vbyes返回6。vbno返回7。
<script language="VBScript" type="text/VBScript">
rtValue=Msgbox ("yes or no?",32+vbYesNo,"")
if rtValue= 6 then temp=Rs(3).value end if
if rtValue= 7 then temp=Rs(4).value end if
</script>
写错了。sorry
vbyes返回6。vbno返回7。
<script language="VBScript" type="text/VBScript">
rtValue=(Msgbox "yes or no?",32+vbYesNo,"")
if rtValue= 6 then temp=Rs(3).value end if
if rtValue= 7 then temp=Rs(4).value end if
</script>
<script language="VBScript" type="text/VBScript">
rtValue=(Msgbox "yes or no?",32+vbYesNo,"")
if rtValue= vbYes then temp=Rs(3).value end if
if rtValue= vbNo then temp=Rs(4).value end if
</script>
<script language="VBScript" type="text/VBScript">
rtValue=(Msgbox "yes or no?",32+vbYesNo,"")
if rtValue= vbYes then temp=Rs(3).value end if
if rtValue= vbNo then temp=Rs(4).value end if
</script>