+ Reply to Thread
Results 1 to 6 of 6

default property of a built-in class

  1. #1
    Registered User
    Join Date
    10-29-2006
    Posts
    14

    default property of a built-in class

    How could I find out the default property of a built-in class?

  2. #2
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Hi,

    A class module is a template for a given object ...
    So what do you mean by "default property" ... ?

    Carim

  3. #3
    Registered User
    Join Date
    10-29-2006
    Posts
    14
    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?

  4. #4
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Sorry ... was not very attentive ...

    See Chip's solution ...

    http://www.cpearson.com/excel/DefaultProperty.htm

    HTH
    Carim

  5. #5
    Registered User
    Join Date
    10-29-2006
    Posts
    14
    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.

  6. #6
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    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

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1