Object doesn't support this property or method

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Likhitha
    New Member
    • Mar 2007
    • 2

    #1

    Object doesn't support this property or method

    Hi,

    Please help me in resolving the above mentioned error.
    The following line of code is throwing the error,

    list_items(TL_C OLUMN_STATUS) = mEDBResourceSta tuses(Format$(l istItem.Resourc eStatus)).Descr iption

    list_items is an array of type String.
    TL_COLUMN_STATU S is of type Enum.
    mEDBResourceSta tuses is an instance of class edbResourceStat uses which contains a Collection variable.
    Format$(listIte m.ResourceStatu s) is returning a valid value which is "101".

    I think the problem is with Collection object.

    Earlier I got the same error while using this Collection object(mEDBReso urceStatuses ) in For..Each statement. I have changed the procedure attributes of NewEnum() function of this object to -4 and the error got resolved. Is there any way to resolve this error? Please let me know as early as possible.

    Thanks & Regards,
    Likhitha
  • Likhitha
    New Member
    • Mar 2007
    • 2

    #2
    Hi All,

    I got the solution. Whenever we write "Item" method for a collection object then we have to set the Procedure attributes as follows.

    select the name of the Item method
    goto Tools---> Procedure Attributes--->Advanced
    set ID to default.
    Click Ok

    we can make only one procedure as Default in a class.

    Regards,
    Usha.

    Comment

    Working...