初学VB,有些简单的问题想问!
来源:百度知道 编辑:UC知道 时间:2024/05/22 15:24:34
请问
dim a,b as integer
和
dim a as integer,b as integer
有什么区别?
dim a,b as integer
和
dim a as integer,b as integer
有什么区别?
dim a,b as integer
(A没有声明类型,B有声明INTEGER;所以A可以是任意类型,B只能是整型)
(只是在VB6。0(或以下)里有,VB2005就相同了)
dim a as integer,b as integer
(A,B都是整型)
dim a,b as integer
b是整型。a是可变型
dim a as integer,b as integer
a&b都是整型
没有区别
VB.Net里没区别
VB里有区别