# An array of pointers in Clarion

**URL:** <https://clarionhub.com/t/an-array-of-pointers-in-clarion/7087>\
**Category:** questions\
**Tags:** language\
**Created:** [April 11, 2024, 8:26am UTC](https://clarionhub.com/t/an-array-of-pointers-in-clarion/7087 "2024-04-11T08:26:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Genricke](https://clarionhub.com/user_avatar/clarionhub.com/genricke/32/5271_2.png) [@Genricke](https://clarionhub.com/u/Genricke)\
**Post date:** [April 11, 2024, 8:26am UTC](https://clarionhub.com/t/an-array-of-pointers-in-clarion/7087/1 "2024-04-11T08:26:11Z")

</div>

Hi !

Do I understand correctly that you cannot declare an array of pointers in Clarion?

```auto
ArrayRef &Long,Dim(10)

```

There are no errors in the development environment itself, but it does not compile. ☹  
Thanks !

---

<div class="post-metadata">

**Author:** ![Mark\_Sarson](https://clarionhub.com/user_avatar/clarionhub.com/mark_sarson/32/6132_2.png) [@Mark\_Sarson](https://clarionhub.com/u/Mark_Sarson)\
**Post date:** [April 11, 2024, 9:23am UTC](https://clarionhub.com/t/an-array-of-pointers-in-clarion/7087/2 "2024-04-11T09:23:57Z")

</div>

Hi

No you can’t but you can change the code slightly and create a `GROUP DIM(10)` Array.

```auto
                    PROGRAM

                    MAP
                    END
ArrayGroup Group,DIM(10)
ArrayRef &Long !,Dim(10)
                    END
TestLong LONG

    CODE
    TestLong = 10
    ArrayGroup[1].ArrayRef &= TestLong
    STOP(ArrayGroup[1].ArrayRef)
    ArrayGroup[1].ArrayRef = 20
    STOP(TestLong)

```

Not quite what you were after, but close.

Mark

---

<div class="post-metadata">

**Author:** ![Genricke](https://clarionhub.com/user_avatar/clarionhub.com/genricke/32/5271_2.png) [@Genricke](https://clarionhub.com/u/Genricke)\
**Post date:** [April 11, 2024, 9:48am UTC](https://clarionhub.com/t/an-array-of-pointers-in-clarion/7087/3 "2024-04-11T09:48:50Z")

</div>

Thanks ! This solution suits me. 🙂
