Originally posted by pound What is this statement mean?
"Public Overridable NotOverridable ReadOnly Property Count() As Integer"
Where did you get it from? As it stands it is impossible (I think).
Could you mean
"Public Overrides NotOverridable", which would be used in a derived class which would then be used as a base class for a subsequent derived class. (I'm in danger of disappearing up my own exhaust pipe here )
Taxes
The more I learn about VB.NET the more I like dBaseIII Plus
The foregoing, whilst believed to be correct, is given without guarantee as to it's accuracy and entirely without recourse. You are required to decide for yourself whether or not it is suitable for your purposes and no liability for loss of any nature can be entertained.
Originally posted by pound Create new class and Inherits System.Collections.CollectionBase, you will see property count(). Try it.
You must be adding something else. I did not get that.
Taxes
The more I learn about VB.NET the more I like dBaseIII Plus
The foregoing, whilst believed to be correct, is given without guarantee as to it's accuracy and entirely without recourse. You are required to decide for yourself whether or not it is suitable for your purposes and no liability for loss of any nature can be entertained.
Just going to take a stabe here and say that Count is a read only property, and is not overridable..... I think.... the error msg doesn't make much sense does it?
Originally posted by pound Let me show you something [in attached picture]
Hi,
I did not realise you were talking about intellisense!
I take that to mean the method can be Overridable OR NotOverridable, depending on how you have constructed it.
Taxes
The more I learn about VB.NET the more I like dBaseIII Plus
The foregoing, whilst believed to be correct, is given without guarantee as to it's accuracy and entirely without recourse. You are required to decide for yourself whether or not it is suitable for your purposes and no liability for loss of any nature can be entertained.
Originally posted by mendhak Is it possible to elaborate upon that? How do the overridable notoverridable keywords come into play? Shouldn't it be either one?
Ahum!!! And I was just hoping that an old hand at VB.NET who had 8146 posts on this forum would intervene with the answer
I just don't KNOW. MSDN Help describes the CollectionBase.Count property as
Public Overridable ReadOnly Property Count As Integer
I suppose it is possible that this is an error in Intellisense.
Taxes
The more I learn about VB.NET the more I like dBaseIII Plus
The foregoing, whilst believed to be correct, is given without guarantee as to it's accuracy and entirely without recourse. You are required to decide for yourself whether or not it is suitable for your purposes and no liability for loss of any nature can be entertained.