一直不太明确这几句的区别:
dim a() as string
dim a as string()
上面两个有什么区别吗?
dim a as string()={"aa","bb","cc"}
这句如何写到类的属性中?这里的“{}”表示什么类型?
谢谢关注
dim a() as string 这个是定义一个数组,
dim a as string() 不能这么用,这个是错误的。
dim a as string()={"aa","bb","cc"}相当于
dim a(3) as string
a(0)="aa"
a(1)="bb"
a(2)="cc"