RETURN from FN or PROC
Posted: Fri 19 Apr 2019, 21:33
Hi,
Which is the more appropriate to use?:
or
Both return the value to the original variable. Is there a usual or more correct one to use for this? I can see in some cases it would be more obvious depending on the circumstances, but not always.
Matt
Which is the more appropriate to use?:
Code: Select all
A% = FNsubroutine(A%)
...
DEF FNsubroutine(a%)
= 10
Code: Select all
PROCsubroutine(A%)
...
DEF PROCsubroutine(RETURN a%)
a% = 10
ENDPROC
Matt