vb继续提问

来源:百度知道 编辑:UC知道 时间:2024/06/30 08:13:56
Dim arrPriceQuantity(1 to 5, 1 to 2)
Dim i as Integer
For i = 1 to 5
arrPriceQuantity(i, 1) = i ' Series 1
arrPriceQuantity(i, 2) = 0 - i ' Series 2
Next i
MsChart1.ChartData = arrPriceQuantity
-----------------------------------------------------------
中的' Series 1在编程时会变成绿色(注释)
arrPriceQuantity(i, 1) = i ' Series 1
arrPriceQuantity(i, 2) = 0 - i ' Series 2
这又何解呢?

呵呵,在VB中, 代码中使用'后,就表示后面是注释内容!!

只是为了让代码看的更清楚而已..

比如:

dim a '设置了一个变量a
a=100 '让a等于100
print a '我打印了a