Assign local variable inside for/start loop
|
03-18-2021, 02:58 AM
Post: #5
|
|||
|
|||
RE: Assign local variable inside for/start loop
(03-17-2021 01:35 PM)Joe Horn Wrote: Since A, B and T already exist as local variables, don't create them again; just use STO as usual to store the new values into them. Replace the second -> A B T with something like 'A' STO 'B' STO 'T' STO (or in the opposite order, depending on the order that they are in the stack). This will store the desired values into the local variables, not into global ones. Also, note that after the inner program ends, those variables will cease to exist, so access them if needed immediately after the NEXT command.It works. Thanks Joe. S.Korean / HP-50G | fx-570EX | fx-570CW | HP-200LX |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
Assign local variable inside for/start loop - BINUBALL - 03-17-2021, 08:27 AM
RE: Assign local variable inside for/start loop - MNH - 03-17-2021, 09:20 AM
RE: Assign local variable inside for/start loop - BINUBALL - 03-17-2021, 10:19 AM
RE: Assign local variable inside for/start loop - Joe Horn - 03-17-2021, 01:35 PM
RE: Assign local variable inside for/start loop - BINUBALL - 03-18-2021 02:58 AM
|
User(s) browsing this thread: 1 Guest(s)