【问题标题】:What does the source code attribute VB_VarMemberFlags do in VBA (if anything at all)?源代码属性 VB_VarMemberFlags 在 VBA 中做了什么(如果有的话)?
【发布时间】:2018-12-28 19:22:56
【问题描述】:

VB6 有一些源代码属性只有在将模块导出到文本文件时才可见。例如,将 DispID 设置为默认值 0 或 For Each 枚举器的 -4。 VBA 理论上是一样的,但有时在 VBA 中没有效果。

VB_VarMemberFlags 在 VBA 中的作用是什么?我知道它是模块级变量的属性。我在一些旧的源代码中看到了一些 200 或 40 的典型值,但这会影响 VBA 中的任何内容吗?

【问题讨论】:

标签: excel vba vb6


【解决方案1】:

它在 VBA 中不会出现。它适用于 VB6,并在“过程属性”对话框的“高级”部分中记录了复选框。为了后代,

  • Hide this member = VB_VarMemberFlags = "40"
  • User Interface Default = VB_VarMemberFlags = "200"
  • Don't show in Property Browser = VB_VarMemberFlags = "400"

我认为下面两个只影响VB6环境。

相比之下,Hide this member 对类型库有外部影响。方法上的Hide this member 将应用hidden IDL 属性(但浏览库的VBA 用户仍然可以使用Show hidden members 菜单选项查看)。

总之,没什么可看的。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2010-12-30
    • 1970-01-01
    • 2014-02-28
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多