Blog > Re: How do you get to an array location in the memory map?

Home Forums ViewPort How do you get to an array location in the memory map? Re: How do you get to an array location in the memory map?

#11769

Hanno
Keymaster

Hi!
This wasn’t easy in 4.73, but is in 4.74+
Either include the array within your share statement like this:
VAR
long a,b,array[100],c
PUB demo
vp.share(@a,@c)

or use the "vp.array" to share an array:
VAR
long a,b,c,array[100]
PUB demo
vp.array(@array,100,5)
vp.share(@a,@c)

Then, in the watch list you can see the first value, and you can click on the address to view the memory map with all items in array highlighted. Press "update" to update the memory map.
Hanno