View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Ömer Ayzan Ömer Ayzan is offline
external usenet poster
 
Posts: 13
Default Property Get with argument

Dear friends,

I am trying to write a class that will parse XML data. I have a property
called TagName. Since there are many tags I wanted to index them. Even
though in the syntax of Property Get statement an argument can be used when
I attempt to use the following code I get an "Compile error: Can't assign to
read-only property." error.

Public Property Let TagName(ByVal intI As Integer)
TagName(intI) = ParsedData(intI)
End Property
Any suggestions are appreciated
Ömer Ayzan