![]() |
#2
wmf20142015-05-14 05:33
|
在自学VB6,学的有点艰难。在例4-5中,有代码如下,定义变量方面把我搞糊涂了。
Private Sub command1_Click()
Dim a, b, c As Single
a = Val(Text1.Text): b = Val(Text2.Text): c = Val(text3.Text)
.......
End Sub
请问高手,这样定义变量对吗?我看前面这样定义是不对的,可书本上确实是这样印的,我好纠结。。。