开发者

Do parenthesis in array declaration matter?

开发者 https://www.devze.com 2023-04-12 02:04 出处:网络
Does (Excel) VBA dis开发者_开发问答tinguish between: Dim Ghadafi as Variant and Dim Ghadafi() as Variant

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

精彩评论

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