I came to the conclusion that neither the function name nor FUNCTION can be treated as a variable
Functions DO act just like variables in expresssions in assignments, except if the function requires parameters they must be supplied:
Code:
LOCAL Z AS DOUBLE LET Z = AddOneDouble(2#) + AddOneDouble (2#) PRINT USING$ ("This better equal 4 : " #.##", Z)
FWIW, I always use "FUNCTION=<returnval>" in lieu of "<functionname>=<returnval>"
Maybe that's just style, but if helps me find what the function is supposed to be returning when I have to debug it.
MCM
Leave a comment: