How to check whether a variant array is unallocated?

后端 未结 5 1055
不知归路
不知归路 2020-12-15 08:16
   Dim Result() As Variant

In my watch window, this appears as

Expression | Value | Type
Result     |       | Variant/Variant()
         


        
5条回答
  •  南笙
    南笙 (楼主)
    2020-12-15 09:04

    Check the LBound of the array. If you get an error then it's uninitialized.

提交回复
热议问题