Menu

DEFFN

2018-11-16
2019-06-13
  • David Nicholls

    David Nicholls - 2018-11-16

    DEFFN av(x,y)=SQR(x^2+y^2) (from the manual)

    When I try to run this I get;
    ERROR: invalid command #255/226 (344ff)
    ERROR at line 0: Error in program structure DEFFN av(x,y)=SQR(x^2+y^2)

    Is this an Android issue or not yet implimented - or am I doing something wrong?
    I note that in sample programs which contain DEFFN they run without problem

     
  • Markus Hoffmann

    Markus Hoffmann - 2018-11-16

    Confirmed. But this only happens when you try to excecute the DEFFN statement.
    It should not be reached by the program flow. I mean, you must put an END command at least one line before the DEFFN.
    I agree, the error message should be more verbose.

     
  • David Nicholls

    David Nicholls - 2018-11-17

    Ah -now got this working!
    I guess there are other instances where  this behaviour happens - but I would never have  guessed   this one when debugging - because it 'defines' I put DEFFN at the beginning of the program along with DIM declarations.
    Many thanks for the help

     

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB