Page 1 of 1

Reference

Posted: Fri May 03, 2019 6:44 am
by godrashma123
How do you reference all the elements in a one-dimension array?

Re: Reference

Posted: Fri May 03, 2019 9:14 am
by grsbanks
STOIJ, RCLEL, STOEL, I+, I-, J+ and J- are your friends.

You can read about them in the HP-42S manual (easily found on the internet).

Alternatively you can make a copy of the REGS variable, store your array as REGS and use the standard STO nn and co. functions. This is probably also a good usage of the new "local variables" feature of Free42 soon coming to the DM42.