Set a type in VBA to nothing?

后端 未结 7 1273
隐瞒了意图╮
隐瞒了意图╮ 2021-02-12 10:40

I have defined a variable with an own type, say

Dim point As DataPoint

Public Type DataPoint
   list as Collection
   name as String
   number as Integer
End Ty         


        
7条回答
  •  日久生厌
    2021-02-12 10:54

    Another option is to use the reserved word "Empty" such as:

    .number= Empty

    The only issue is that you will need to change the number from integer to variant.

提交回复
热议问题