vb编译时出现“编译错误,必选参数”为什么?以下为代码:Private Sub Command1_Click()
SelectCaseComboBox.TextCaseSinForX=0To15Step0.001Y=Sin(a*X)+bDot=DrawDot(X,Y,RGB(0,25...
Select Case ComboBox.Text
Case Sin
For X = 0 To 15 Step 0.001
Y = Sin(a * X) + b
Dot = DrawDot(X, Y, RGB(0, 255, 0))
Next X
Case Cos
For X = 0 To 15 Step 0.001
Y = Cos(a * X) + b
Dot = DrawDot(X, Y, RGB(0, 255, 0))
Next X
Case Tan
For X = 0 To 15 Step 0.001
Y = Tan(a * X) + b
Dot = DrawDot(X, Y, RGB(0, 255, 0))
Next X
Case Ctn
For X = 0 To 15 Step 0.001
Y = Cot(a * X) + b
Dot = DrawDot(X, Y, RGB(0, 255, 0))
Next X
End Sub
请高手指教!! 展开
Case Sin
For X = 0 To 15 Step 0.001
Y = Sin(a * X) + b
Dot = DrawDot(X, Y, RGB(0, 255, 0))
Next X
Case Cos
For X = 0 To 15 Step 0.001
Y = Cos(a * X) + b
Dot = DrawDot(X, Y, RGB(0, 255, 0))
Next X
Case Tan
For X = 0 To 15 Step 0.001
Y = Tan(a * X) + b
Dot = DrawDot(X, Y, RGB(0, 255, 0))
Next X
Case Ctn
For X = 0 To 15 Step 0.001
Y = Cot(a * X) + b
Dot = DrawDot(X, Y, RGB(0, 255, 0))
Next X
End Sub
请高手指教!! 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询