开发者

Do parenthesis in array declaration matter?

Does (Excel) VBA dis开发者_开发问答tinguish between:

Dim Ghadafi as Variant

and

Dim Ghadafi() as Variant

?


First syntax is ONE variant variable, while second represent an array of variant.

  1. You can do Ghadafi = 5.25
  2. You can do
    Redim Preserve Ghadafi(3)
    Ghadafi(1) 5.25
    Ghadafi(2) = 6.10
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜