请问在VB中能不能实现这样的功能?
gen2 2004-10-10 10:59:00 请问在VB中能不能实现这样的功能:
Class A
Public m_fieldsCollection As Collection
Private Sub Initialize()
m_fieldsCollection.Add("field1")
m_fieldsCollection.Add("field2")
End Sub
....
End Class
我现在想有这样的一个调用:
instanceA("field1") = "abc"
而这个调用可以设定m_fieldsCollection集合中的field1元素, 请问有没有办法实现?