VBA Classes/Objects

后端 未结 2 1458
春和景丽
春和景丽 2020-12-16 06:47

Allthough an experienced VBA programmer it is the first time that I make my own classes (objects). I am surprised to see that all properties are \'duplicated\' in the Locals

2条回答
  •  时光说笑
    2020-12-16 07:26

    All the Inspection windows not only show the public interface of the objects to you, but also their private members. AFAIK there is nothing you can do about it.

    Consider it a nice feature to get even more insights while debugging.

    In my experience this is less of an issue in real world objects as they tend to have more fields and properties. Assuming a consistent naming (as your example shows), fields and properties are nicely grouped together.

提交回复
热议问题