0

I have built an array, when I add it to watch

dict.Items

It returns

Expression                    Values
dict.Items                  
--dict.Items(0)                "value in it"
--dict.Items(1)                "value in it"
--dict.Items(2)                "value in it"

But when I try to add watch to expression

dict.Items(0)

It returns the following

Watch :   : dict.keys(0) : <Property let procedure not defined and property get procedure did not return an object> : Variant/Empty : VBAProject.basMigration.UniqueReport

enter image description here

3
  • Items doesn't take an index. Commented Apr 27, 2015 at 12:57
  • 1
    I should probably elaborate: Items simply returns the whole array, so you'd need to watch: Items()(0) rather than Items(0) Commented Apr 27, 2015 at 13:04
  • it works :) You can add it as answer ! Commented Apr 27, 2015 at 14:38

1 Answer 1

1

The Items method doesn't take an index - it only returns the whole array, so you'd need to add a watch for Items()(0) rather than Items(0)

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.