HP-71B BASIC Question
|
03-16-2021, 02:38 AM
(This post was last modified: 03-16-2021 03:35 AM by Valentin Albillo.)
Post: #3
|
|||
|
|||
RE: HP-71B BASIC Question
.
Hi, Sylvain: (03-16-2021 12:53 AM)Sylvain Cote Wrote: I have created a program that have multiple sub-routines and I have a user defined function (UDF) that need to be called from the main body and from the sub-routines. Not a criticism or nitpicking but you need to use the proper terminology: what you are trying to do is to call an UDF from a subprogram (CALL), not from a subroutine (GOSUB) Calling a main-program UDF from a subprogram is not possible, they use separate environments. Your options are:
Neither option is ideal, each have their disadvantages but at least you won't have to repeat the UDF in the main program and all subprograms that do use it. Regards. V. All My Articles & other Materials here: Valentin Albillo's HP Collection |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)