Link to home
Start Free TrialLog in
Avatar of hess
hess

asked on

Setting a value of an item in a collection

Public DLS(1 to 2) as new collection 'in module

... later on in mdi form

msgbox DLS(2).item(x) ' this works fine
DLS(2).item(x)="6" ' Error Object Reqiured... what is the matter with this?
Avatar of Ark
Ark
Flag of Russian Federation image

Hi
Set DLS(2).item(x)="6"
Cheers
Hi
Sorry, ignore my previous message
Correct code:
DLS(2).Remove x
DLS(2).Add "6", , x
Cheers
ASKER CERTIFIED SOLUTION
Avatar of FWAllan
FWAllan

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of hess
hess

ASKER

That is what I thought the case was. Thankyou for asuring me.