Post Reply 
What Am I Missing (HP-71B)
11-03-2014, 11:51 PM
Post: #8
RE: What Am I Missing (HP-71B)
(11-03-2014 10:21 PM)Les Bell Wrote:  1) The need to pass arrays by reference, and the consequent need to use a subprogram with an output parameter, and

In my example all variables where passed by reference.

Here is another example ...

10 R1=0 @ CALL SBT(R1) ! pass by ref
20 R2=0 @ CALL SBT((R2)) ! pass by val
30 DISP R1;R2 ! shows 10 0
40 SUB SBT(Z) @ Z=10 @ END SUB

(11-03-2014 10:21 PM)Les Bell Wrote:  2) The fact that DEF FN doesn't allow keyboard execution, only use as a program statement (that's why my simple non-array example was failing).
... does the UDF exist only within the scope of the program that defines it?

No UDF are local and can only be called inside the program file they reside.

Sylvain
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
What Am I Missing (HP-71B) - Les Bell - 11-03-2014, 04:53 AM
RE: What Am I Missing (HP-71B) - Les Bell - 11-03-2014, 10:45 AM
RE: What Am I Missing (HP-71B) - cruff - 11-03-2014, 01:41 PM
RE: What Am I Missing (HP-71B) - Les Bell - 11-03-2014, 10:21 PM
RE: What Am I Missing (HP-71B) - Sylvain Cote - 11-03-2014 11:51 PM
RE: What Am I Missing (HP-71B) - Les Bell - 11-04-2014, 01:01 AM
RE: What Am I Missing (HP-71B) - Joe Horn - 11-05-2014, 05:25 AM
RE: What Am I Missing (HP-71B) - Les Bell - 11-05-2014, 07:24 AM



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