VB中dim与set的区别

1.dim是作用于变量 声明变量并分配存储空间
2.set作用于对象 将对象引用赋给变量或属性
例子:
dim A as collection
set A=new collection
等效于
dim A as new collection

猜你喜欢

转载自blog.csdn.net/qq_18671205/article/details/85838047