VBA - 收藏集 [英] VBA - Collection of collection

查看:75
本文介绍了VBA - 收藏集的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨。

所以我有一个第一类(clsResults)作为对象的集合,而对象类(clsResult)几乎是一个集合本身(我不能定义对象的属性,因为它们可以改变)。

So I have a first class (clsResults) that acts as a collection of objects, and the object class (clsResult) that is pretty much a collection in itself (I can't define the properties of the object as these can change).

我的问题是:我如何确保所有clsResult对象具有完全相同的键(属性)?我想在clsResults中有另一个只包含键(属性)的集合,然后检查每个clsResult对象是否有这些键,
但我不确定这是否是最佳方式。提前谢谢!

My question is: how do I ensure that all clsResult objects have the exact same keys (properties)? I'm thinking of having another collection in clsResults that only contains the keys (properties) and then checks that each clsResult object has those keys, but I'm not sure if that is the optimal way. Thank you in advance!

推荐答案

此论坛适用于VB Net,不适用于VBA。

This forum is for VB Net, not VBA.

对不起......


这篇关于VBA - 收藏集的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆