AndrewMozley
Programmer
I have never been sure of the difference between LPARAMETERS and PARAMETERS.
Have written a short test program to see if I can detect the difference.
In each case the results are the same; (the program also gives an error on the last ‘? “vParm = “ . . . ‘ statement)
Would be grateful if anyone cares to provide code which shows the difference between LPARAMETERS and PARAMETERS. I have never learned!
Thanks - Andrew
Have written a short test program to see if I can detect the difference.
Code:
CLEAR
SET TALK OFf
LOCAL X
x = 2
SET STEP ON
lAns = MyFUNC(x)
? "lAns = " + STR(lAns,2)
? "vParm = " + STR(vParm,2)
RETURN
FUNCTION MyFunc
PARAMETERS vParm
* or LPARAMETERS vParm
vParm = 3
RETURN vParm
In each case the results are the same; (the program also gives an error on the last ‘? “vParm = “ . . . ‘ statement)
Would be grateful if anyone cares to provide code which shows the difference between LPARAMETERS and PARAMETERS. I have never learned!
Thanks - Andrew