Post Reply 
HP-48G local variables within subroutine
05-17-2023, 02:09 PM (This post was last modified: 05-17-2023 02:34 PM by Boub65.)
Post: #7
RE: HP-48G local variables within subroutine
Hello and thanks for the examples.
My question is how can I use a local variable to do intermediate calculations within a subroutine that is NOT arguments transmitted to the subroutine NOR global variables.
For example I want to put a * b in "local variable" local_c to use it later in the subroutine.
Example :
《 -> a b 《 a b * 'local_c' STO then use local_c in this subtoutine... 》》

The scope of the local variable local_c would be restricted to the subroutine and we would not find it in the global variables (using VAR) after the subroutine ends. aka LSTO in Free42.
I hope I am clear enought?

Cordialement, Sincerely, 73
Boubker.

HP41C,CV/HP48SX/HP42s/HP32Sii/DM15L/DM41L/DM41X/DM42
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: HP-48G local variables within subroutine - Boub65 - 05-17-2023 02:09 PM



User(s) browsing this thread: 2 Guest(s)