Private Sub Form_Load() Dim Dept As cDept
Dim Depts As cDepts
Set Depts = New cDepts
For Each Dept In Depts
Next DeptEnd Subcdept 为一对像
cdepts 为cdept对像的集合,为什么执行到 For Each Dept In Depts
会出现 "Object doesn't support this property or method
"错误
Dim Depts As cDepts
Set Depts = New cDepts
For Each Dept In Depts
Next DeptEnd Subcdept 为一对像
cdepts 为cdept对像的集合,为什么执行到 For Each Dept In Depts
会出现 "Object doesn't support this property or method
"错误
解决方案 »
- *****预祝大家双节快乐!!!*****
- 同样的一段程序,在两个模块中一个可以通过,另一个却通不过,不得解?
- ====有关使用Setup Factory 7.0.1打包的几个问题====
- 看到过一个程序,让主板发出其他的声音,不是Beep,如何实现?
- 请问如何将Screen.MousePointer=?后变成一直手?
- 怎样才能让combo box具有横向滚动条
- PictureBox使用Pset方法后,上面的东西无法保存。一拖动窗体,上面的东西就没了。
- 有关COOLBAR/ToolBar,当ToolBar中的Button太多时用>>下拉显示,查了好久都未有答案。。。
- 报表问题
- 请教朋友们一个困扰我的问题
- 急~~~~~~~~~~~~~~~~有一段C代码,我想编译成DLL文件,然后给VB调用,怎么做啊。
- 求救(急!急!急!)
Public Property Get NewEnum() As IUnknown
'本属性允许用 For...Each 语法枚举该集合。
Set NewEnum = m_Col.[_NewEnum]
End Property
这个m_Col是指Depts类中用来表示Dept的集合[数组]
过程的属性为Attribute NewEnum.VB_UserMemId = -4
set Depts = 集合(Collection类型)