By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,096 Members | 1,348 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,096 IT Pros & Developers. It's quick & easy.

Object doesn't support this property or method

P: 2

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

list_items(TL_COLUMN_STATUS) = mEDBResourceStatuses(Format$(listItem.ResourceStat us)).Description

list_items is an array of type String.
TL_COLUMN_STATUS is of type Enum.
mEDBResourceStatuses is an instance of class edbResourceStatuses which contains a Collection variable.
Format$(listItem.ResourceStatus) 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(mEDBResourceStatuses ) 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,
Mar 30 '07 #1
Share this Question
Share on Google+
1 Reply

P: 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.

Mar 30 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.