通过VB.NET中的VB6结构成员循环 [英] Looping through VB6 Structure members in VB.NET

查看:63
本文介绍了通过VB.NET中的VB6结构成员循环的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的VB.NET应用程序中使用VB6库。


这个库有一个函数可以检索报告记录(作为结构)。


该库中的一个结构包含105个公共布尔成员,这些成员向函数指示类型是什么。在运行报告时应包括记录。


由函数检索的报告记录结构包含此报告类型结构,以指示类型。检索记录你可以通过在记录类型结构中找到单个布尔成员设置为True来判断它是哪种类型的记录。


有没有办法循环通过VB6结构成员?


请注意,105布尔人不是属性......他们只是公开暴露的布尔人。 (所以System.Reflection PropertyInfo不起作用)


感谢您的时间,


-Frinny

I''m using a VB6 library in my VB.NET application.

This library has a function that retrieves report records (as structures).

One of the structures in this library contains 105 public Boolean members that indicate to the function which "types" of records should be included while running a report.

The report record structures retrieved by the function contain this report type structure in order to indicate the"type" of record retrieved. You are able to tell which type of record it is by finding the single Boolean member is set to True in the record type structure.

Is there a way to loop through the VB6 Structure members?

Please note that the 105 Booleans are not Properties...they are simply publicly exposed Booleans. (So the System.Reflection PropertyInfo won''t work)

Thanks for your time,

-Frinny

推荐答案

嘿Frinny ......


您是否尝试过查看FieldInfo?

VB
Hey Frinny...

Have you tried looking at the FieldInfo?
VB
展开 | 选择 | Wrap | 行号


这对你有帮助吗?

Does this help any?

展开 | 选择 | Wrap | 行号


以下代码中的项目是什么?
What is item in the following code?
展开 | 选择 | Wrap | 行号


这篇关于通过VB.NET中的VB6结构成员循环的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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