Private Sub Picture1_Click()
Dim x, y As Single
Picture 1.Scale (-10,25)-(10-25).
Picture 1.Line (-10,0)-(10-0),RGB(Green As Integer)
Picture 1.Line (0,25)-(0,-25),RGB(Red As Interger)
For x = -10 To 10 Step 0.00001
y = x ^ 2
Picture 1.PSet (x.y),RGB(255,0,0)
Next x
End Sub
如何解决?
VB编写出现缺少语句结束错误
答案:1 悬赏:40 手机版
解决时间 2021-07-30 07:39
- 提问者网友:谁的错
- 2021-07-29 12:12
最佳答案
- 五星知识达人网友:鱼忧
- 2021-07-29 12:58
Private Sub Picture1_Click()
Dim x, y As Single
Picture1.Scale (-10, 25)-(10, 25)
Picture1.Line (-10, 0)-(10, 0), RGB(255, 255, 0)
Picture1.Line (0, 25)-(0, -25), RGB(255, 0, 0)
For x = -10 To 10 Step 0.00001
y = x ^ 2
Picture1.PSet (x, y), RGB(255, 0, 0)
Next x
End Sub
Dim x, y As Single
Picture1.Scale (-10, 25)-(10, 25)
Picture1.Line (-10, 0)-(10, 0), RGB(255, 255, 0)
Picture1.Line (0, 25)-(0, -25), RGB(255, 0, 0)
For x = -10 To 10 Step 0.00001
y = x ^ 2
Picture1.PSet (x, y), RGB(255, 0, 0)
Next x
End Sub
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯