How could I find out the default property of a built-in class?
How could I find out the default property of a built-in class?
Hi,
A class module is a template for a given object ...
So what do you mean by "default property" ... ?
Carim
![]()
If an object is created it might have a default property, e.g. I've read that a Range object has .Value as the default property. So here is where my question comes in. Is there a way to find the default property of any object of any class?
Sorry ... was not very attentive ...
See Chip's solution ...
http://www.cpearson.com/excel/DefaultProperty.htm
HTH
Carim
![]()
Thanks Carim, but that page describes how to create a default property of a custom class and doesn't answer my question.
The reason I'm asking is that when I read a piece of code it is sometimes difficult to see if a default property is used or not. I'd like to be explicit in my code and always write the default property, but I'm not always sure if I do as I'm sometimes confused which types an object method/property accepts. That's why I'd like to know what the default property of built-in classes are.
I don't know ...
May be you could put your question into the MSDN developper forum ?
http://msdn2.microsoft.com/en-us/library/ms501397.aspx
HTH
Carim
![]()
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks