Collection对象问题
三断笛 2008-11-09 07:51:39 编写一个集合类,类包含Add,Remove,Count,Item等属性和方法
问题是:如何对Item进行操作
下面的方法能读Item,要怎样才能写Item呢?
private c_Item() as variant
'''''读Item
public property get Item(Index As Long) as Variant
Item(index)=c_Item(Index)
End Property
''''读Item
Public Function Item(Index As Long) As Variant
Item=c_Item(Index)
End Function
如何实现像Collection对象的Item一样进行写操作?