VB程序求解!!
PrivateSubCommand1_Click()aa=20aaa=aa*3.141592654/180hax=1q=(2*hax)/(Sin(aaa)^2)Ifz1<...
Private Sub Command1_Click()
aa = 20
aaa = aa * 3.141592654 / 180
hax = 1
q = (2 * hax) / (Sin(aaa) ^ 2)
If z1 <= 17 Then
x1 = z1
x2 = -x1
End If
End Sub
以上程序当Z1为1到17时都能运行.可将z1 <= 17改成z1 <= Q时(程序如下)
Private Sub Command1_Click()
aa = 20
aaa = aa * 3.141592654 / 180
hax = 1
q = (2 * hax) / (Sin(aaa) ^ 2)
If z1 <= q Then
x1 = z1
x2 = -x1
End If
End Sub
这个程序在Z1为1到9进不能运行,在Z1=10到17时能运行,
请高手帮助,谢谢!
该程序有3个“TEXT”文本框,一个是输入Z1,两个分别是得出结论X1和X2,另再设一个“Command1”执行按键。z1的输入值大于等于1 展开
aa = 20
aaa = aa * 3.141592654 / 180
hax = 1
q = (2 * hax) / (Sin(aaa) ^ 2)
If z1 <= 17 Then
x1 = z1
x2 = -x1
End If
End Sub
以上程序当Z1为1到17时都能运行.可将z1 <= 17改成z1 <= Q时(程序如下)
Private Sub Command1_Click()
aa = 20
aaa = aa * 3.141592654 / 180
hax = 1
q = (2 * hax) / (Sin(aaa) ^ 2)
If z1 <= q Then
x1 = z1
x2 = -x1
End If
End Sub
这个程序在Z1为1到9进不能运行,在Z1=10到17时能运行,
请高手帮助,谢谢!
该程序有3个“TEXT”文本框,一个是输入Z1,两个分别是得出结论X1和X2,另再设一个“Command1”执行按键。z1的输入值大于等于1 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询