难道VB6就不支持类里的方法参数列表有用户定义类型的变量吗???
请各位看代码
Option Explicit
Private Type billother
Billname As String
Billbool As Boolean
Billvalue As Single
End Type
Private Type cellitem1
CellOrdinal As Integer '房间号 包括楼层和房间序号,如 301,用一维矩阵进行解决。
Disburseway As String '付款方式
rental As Single '租金
deposit As Single '押金
Costother(1 To 6) As billother '其他费用
End Type
Private cellones() As CellItem '房间数组,需要重定义的
Private floorcell As uc_floorcell '创建一个控件类的声明
Public Function cellonesattachatom(ByVal houserial As Integer, ByRef other As billother) '其他的费用
Dim i As Integer
For i = 0 To UBound(cellones(houserial))
Next i
End Function
非运行时(也就是解释时) 报错,报错如下
Private Enum和用户定义类型不能做为参数、公共过程的返回类型、公共数据成员或公共用户定义类型的字段使用
我看了的,CSDN里还没人能够给出正确的回答,我如果想实现自由的使用类中的用户自定义类型,该怎么办???