An array of pointers in Clarion

Hi

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

                    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

1 Like