下面这段程序运行的时候提示:else 没有 if
<p>下面这段程序运行的时候提示:else 没有 if</p><p>这是怎么回事啊?</p><p>If tiji < 300 Then zhihou = 0.5<br/>Else: If tiji <= 4900 Then zhihou = 1<br/>Else: If tiji <= 6150 Then zhihou = 1.02<br/>End If</p> <p> If tiji < 300 Then<br/> zhihou = 0.5<br/> ElseIf tiji <= 4900 Then zhihou = 1<br/> ElseIf tiji <= 6150 Then zhihou = 1.02<br/> End If</p><p>在VB帮助中查ElseIf,语法问题</p> 王咣生发表于2007-5-30 21:46:00static/image/common/back.gif If tiji < 300 Then zhihou = 0.5 ElseIf tiji <= 4900 Then zhihou = 1 ElseIf tiji <= 6150 Then zhih<p>谢谢版主~~</p><p>vb的语法我还不太适应</p>
页:
[1]