# Expression of this type cannot be used to index the array

**URL:** <https://verificationacademy.com/forums/t/expression-of-this-type-cannot-be-used-to-index-the-array/35426>\
**Category:** SystemVerilog\
**Tags:** SystemVerilog, randomization-associative-array\
**Created:** [December 6, 2018, 9:17pm UTC](https://verificationacademy.com/forums/t/expression-of-this-type-cannot-be-used-to-index-the-array/35426 "2018-12-06T21:17:59Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![desperadorocks](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/d/ecc23a/32.png) [@desperadorocks](https://verificationacademy.com/forums/u/desperadorocks)\
**Post date:** [December 7, 2018, 4:26pm UTC](https://verificationacademy.com/forums/t/expression-of-this-type-cannot-be-used-to-index-the-array/35426/5 "2018-12-07T16:26:03Z")

</div>

_In reply to [karan\_18](https://verificationacademy.com/forums/t/expression-of-this-type-cannot-be-used-to-index-the-array/35426/4):_

Hello Karan !

THanks for your inputs. Had the reverse working at my end as well. But was wondering if cycleling through the assoc array during randomization isn’t possible at all?

---

_[View the full topic](https://verificationacademy.com/forums/t/expression-of-this-type-cannot-be-used-to-index-the-array/35426)._
